@@ -45,6 +45,11 @@
[ "$result" = "-8" ]
}
+@test "Minus unary operand" {
+ result="$(echo '-4=' | ./eval.out)"
+ [ "$result" = "-4" ]
+}
+
@test "Basic division" {
result="$(echo '42 / 7 =' | ./eval.out)"
[ "$result" = "6" ]