blob: 93f1a43ad1ad427421915d80504b1f96b685290d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
test: test1 test2 test3
test1:
@echo "=== TEST 1 ==="
@printf "Expression is: %s\n" "(3 + 3 * 2) * 4 + 6 - 9 + -2 * (4 + 8 * 3) = -23"
@printf "Answer is: "
@python3 tokenizer.py "(3 + 3 * 2) * 4 + 6 - 9 + -2 * (4 + 8 * 3)"
test2:
@echo "=== TEST 2 ==="
@printf "Expression is: %s\n" "3 + 3 * 2 + 6 - 9 + -2 * 4 + 8 * 3 = 22"
@printf "Answer is: "
@python3 tokenizer.py "3 + 3 * 2 + 6 - 9 + -2 * 4 + 8 * 3"
test3:
@echo "=== TEST 3 ==="
@printf "Expression is: %s\n" "(2 + (3 * 5)) * 4 - 1 + 3 * (2 + 5 * (7 - 9 + (2 * 4 - 5 * (21 + 52)))) = -5312"
@printf "Answer is: "
@python3 tokenizer.py "(2 + (3 * 5)) * 4 - 1 + 3 * (2 + 5 * (7 - 9 + (2 * 4 - 5 * (21 + 52))))"
|