diff --git a/src/tests.rs b/src/tests.rs index 9f6703d..b17c8be 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -216,4 +216,11 @@ fn complex_units() { good_expr("120 m", "(2 min) * (1 m/s)"); good_expr("180", "1 Hz * 3 min"); good_expr("3600", "1 hour * 1 Hz"); +} + +#[test] +fn functions() { + good_expr("2", "nounit(2 mm)"); + good_expr("2", "nounit(2 meter * second)"); + //good_expr("5000 m²·g/(s²·A²)", "tobase(5H)"); } \ No newline at end of file