Added a few more tests

pull/2/head
Mark 2023-03-27 10:56:48 -07:00
parent 66559eaa8c
commit 701c8435fb
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 3 additions and 0 deletions

View File

@ -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");