From 701c8435fbb94f852f724425a9e6e1c03ebf2f4c Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 27 Mar 2023 10:56:48 -0700 Subject: [PATCH] Added a few more tests --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index b7498c1..8603a76 100644 --- a/src/main.rs +++ b/src/main.rs @@ -283,6 +283,8 @@ mod tests { bad_expr("3 + "); bad_expr("3 + @"); bad_expr("3 - "); + bad_expr("()"); + bad_expr("3+2)"); } #[test] @@ -291,6 +293,7 @@ mod tests { good_expr(125f64, "5 ^ 3"); good_expr(125f64, "( 5 ) ^ ( 3 )"); good_expr(125f64, "( ( 5 ) ^ ( 3 ) )"); + good_expr(125f64, "( ( 5 ^ ( 3"); good_expr(125f64, "( 5 ^ 3 )"); //good_expr(125f64, "5^(+3)"); //good_expr(125f64, "+5^3");