Exemple #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)
Exemple #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)
Exemple #3
0
 def test_ack(self):
     # coordinates 1,4
     test_func = ackerman()
     result = test_func.ack(1, 4)
     assert_equal(result, 6)
Exemple #4
0
 def test_ack(self):
     # coordinates 2,3
     test_func = ackerman()
     result = test_func.ack(2, 3)
     assert_equal(result, 9)
Exemple #5
0
 def test_ack(self):
     # coordinates 0,1
     test_func = ackerman()
     result = test_func.ack(0, 1)
     assert_equal(result, 2)
Exemple #6
0
 def test_ack(self):
     # coordinates 1,4
     test_func = ackerman()
     result = test_func.ack(1, 4)
     assert_equal(result, 6)
Exemple #7
0
 def test_ack(self):
     # coordinates 2,3
     test_func = ackerman()
     result = test_func.ack(2, 3)
     assert_equal(result, 9)
Exemple #8
0
 def test_ack(self):
     # coordinates 0,1
     test_func = ackerman()
     result = test_func.ack(0, 1)
     assert_equal(result, 2)