示例#1
0
 def test_path_resolving_from_bottom_right(self):
     nodes_mapping = PathResolvingTest.get_nodes_mapping()
     path_resolver = PathResolver(nodes_mapping)
     paths = path_resolver.resolve_paths(4, 5)
     self.assertEqual(len(paths), 2)
示例#2
0
 def test_path_resolving_from_bottom_right_with_restrictions(self):
     max_number_of_paths = 1
     nodes_mapping = PathResolvingTest.get_nodes_mapping()
     path_resolver = PathResolver(nodes_mapping)
     paths = path_resolver.resolve_paths(4, 5, max_number_of_paths)
     self.assertEqual(len(paths), max_number_of_paths)
示例#3
0
 def test_path_resolving_from_top_left(self):
     nodes_mapping = PathResolvingTest.get_nodes_mapping()
     path_resolver = PathResolver(nodes_mapping)
     paths = path_resolver.resolve_paths(0, 0)
     self.assertEqual(len(paths), 1)