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