]> git.friedersdorff.com Git - max/python_unittesting.git/blob - 2_troubleshooting.py
Add README that outlines unittesting
[max/python_unittesting.git] / 2_troubleshooting.py
1 from ackermann_attempt import incorrect_ackermann
2
3
4 def test_ackermann_3_3():
5     assert incorrect_ackermann(3, 3) == 61
6
7 def test_ackermann_0_0():
8     assert incorrect_ackermann(0, 0) == 1
9
10 def test_ackermann_4_0():
11     assert incorrect_ackermann(4, 0) == 13
12
13 def test_ackermann_0_4():
14     assert incorrect_ackermann(0, 4) == 5
15
16 def test_ackermann_3_5():
17     assert incorrect_ackermann(3, 5) == 253