Exemple #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)
Exemple #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)
Exemple #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)