Added check for negative powers

This commit is contained in:
2023-06-07 15:21:36 -07:00
parent 8ca4ffd51f
commit dae76f3d56
2 changed files with 5 additions and 0 deletions

View File

@@ -171,6 +171,7 @@ fn operators() {
good_expr("7", "3!+1");
good_expr("18", "3!3");
bad_expr("3.1!");
bad_expr("0^(-1)");
bad_expr("pi!");
}