Browse Source

Add test cases with parenthesis

DricomDragon 5 years ago
parent
commit
2d6167ce9d
2 changed files with 8 additions and 4 deletions
  1. 3 0
      ans.txt
  2. 5 4
      test.txt

+ 3 - 0
ans.txt

@@ -1,4 +1,7 @@
 3
 -1
 7
+9
 6
+0
+9

+ 5 - 4
test.txt

@@ -1,6 +1,7 @@
-1+2
-=
+1+2=
 1-2=
-1+2*3
-=
+1+2*3=
+(1+2)*3=
 1+2+3=
+(1 - 1) + (2 - 2) =
+1 + 4 * 2 =