From 9de31040747db70773b660bb2b671bc6a36de5d5 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 1 Aug 2023 10:01:32 -0700 Subject: [PATCH] Added function tests --- src/tests.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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