Example #1
0
 def test_ack(self):
     # coordinates 0,0
     test_func = ackerman()
     m = 0
     n = 0
     result = test_func.ack(m, n)
     assert_equal(result, 1)
Example #2
0
 def test_ack(self):
     # coordinates 0,0
     test_func = ackerman()
     m = 0
     n = 0
     result = test_func.ack(m, n)
     assert_equal(result, 1)
Example #3
0
 def test_ack(self):
     # coordinates 1,4
     test_func = ackerman()
     result = test_func.ack(1, 4)
     assert_equal(result, 6)
Example #4
0
 def test_ack(self):
     # coordinates 2,3
     test_func = ackerman()
     result = test_func.ack(2, 3)
     assert_equal(result, 9)
Example #5
0
 def test_ack(self):
     # coordinates 0,1
     test_func = ackerman()
     result = test_func.ack(0, 1)
     assert_equal(result, 2)
Example #6
0
 def test_ack(self):
     # coordinates 1,4
     test_func = ackerman()
     result = test_func.ack(1, 4)
     assert_equal(result, 6)
Example #7
0
 def test_ack(self):
     # coordinates 2,3
     test_func = ackerman()
     result = test_func.ack(2, 3)
     assert_equal(result, 9)
Example #8
0
 def test_ack(self):
     # coordinates 0,1
     test_func = ackerman()
     result = test_func.ack(0, 1)
     assert_equal(result, 2)