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