示例#1
0
    def testMedium_4(self):
        """
		testMedium_4
			tests for an invalid path for a 3 x 3.
		"""
        path = get_path("cases/5.in")

        assert path is None
示例#2
0
    def testLarge_2(self):
        """
		testLarge_2
			tests for a trivial path for a 4 x 4.
		"""
        actual_length = 12
        path = get_path("cases/7.in")

        self.assertEqual(actual_length, len(path))
示例#3
0
    def testMedium_3(self):
        """
		testMedium_3
			tests the correct path for a 3 x 3. Harmony 3
			puzzle 1 of 2015 holiday pack.
		"""
        actual_length = 5
        path = get_path("cases/4.in")

        self.assertEqual(actual_length, len(path))
示例#4
0
    def testMedium_2(self):
        """
		testMedium_2
			tests the correct path for a 3 x 3. Harmony 3
			puzzle 1 of pack 1.
		"""
        actual_length = 5
        path = get_path("cases/3.in")

        self.assertEqual(actual_length, len(path))
示例#5
0
    def testMedium_1(self):
        """
		testMedium_1
			tests the correct path for a 3 x 3. Trivial
			test case for debugging.
		"""
        actual_length = 2
        path = get_path("cases/2.in")

        self.assertEqual(actual_length, len(path))
示例#6
0
    def testSmall_1(self):
        """
		testSmall_1
			tests the correct path for a 2 x 2. Trivial
			test case for debugging.
		"""
        actual_length = 1
        path = get_path("cases/1.in")

        self.assertEqual(actual_length, len(path))
示例#7
0
    def testLarge_3(self):
        """
		testLarge_3
			tests for a trivial path for Harmony 3
			puzzle 8 of pack 1.
		"""
        actual_length = 11
        path = get_path("cases/8.in")

        self.assertEqual(actual_length, len(path))