Skip to content

Commit ef7c8fd

Browse files
committed
Add test cases for arithmetic_arranger function
1 parent a5bd2be commit ef7c8fd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from main import arithmetic_arranger
2+
problems = ["32 + 698", "3801 - 2", "45 + 43", "123 + 49","99 + 1"]
3+
arithmetic_arranger(["32 + 8", "1 - 3801", "9999 + 9999", "523 - 49"], True)
4+
arithmetic_arranger(problems, show_answers= True)
5+
arithmetic_arranger(["3801 - 2", "123 + 49"], show_answers=True)
6+
arithmetic_arranger(["1 + 2", "1 - 9380"], show_answers=True)
7+
arithmetic_arranger(["3 + 855", "3801 - 2", "45 + 43", "123 + 49"], show_answers=True)
8+
arithmetic_arranger(["11 + 4", "3801 - 2999", "1 + 2", "123 + 49", "1 - 9380"], show_answers=True)
9+
arithmetic_arranger(["44 + 815", "909 - 2", "45 + 43", "123 + 49", "888 + 40", "653 + 87"])
10+
arithmetic_arranger(["3 / 855", "3801 - 2", "45 + 43", "123 + 49"])
11+
arithmetic_arranger(["24 + 85215", "3801 - 2", "45 + 43", "123 + 49"])
12+
arithmetic_arranger(["98 + 3g5", "3801 - 2", "45 + 43", "123 + 49"])
13+
arithmetic_arranger(["3 + 855", "988 + 40"], True)
14+
arithmetic_arranger(["32 - 698", "1 - 3801", "45 + 43", "123 + 49", "988 + 40"], True)

0 commit comments

Comments
 (0)