示例#1
0
    def test_triangle(self):
        # Arrange
        path_to_test_data = os.path.abspath(os.path.realpath('triangle.txt'))

        expected = 1

        # Act
        print triangle.max_path(path_to_test_data)
示例#2
0
    def test_triangle_example(self):
        # Arrange
        path_to_test_data = os.path.abspath(os.path.realpath('triangle_example.txt'))

        expected = 27

        # Act
        result = triangle.max_path(path_to_test_data)

        # Assert
        self.assertEqual(expected, result)