Exemplo n.º 1
0
 def test_all_directions_large_matrix(self):
     m = numpy.loadtxt('matrix.txt', dtype=numpy.int32, delimiter=',')
     self.assertEqual(calculate_matrix_minimal_path_sum_all_directions(m), 425185)
Exemplo n.º 2
0
 def test_all_directions_small_example_matrix(self):
     m = self.get_small_example_matrix()
     self.assertEqual(calculate_matrix_minimal_path_sum_all_directions(m), 2297)