Ejemplo n.º 1
0
 def test_no_calculation(self):
     sol = _get_shortest_solution(('x',), ('x',), (), self.methods)
     assert isinstance(sol, tuple)
     assert len(sol) == 3
     assert len(sol[0]) == 0
     assert len(sol[1]) == 0
     assert len(sol[2]) == 0
Ejemplo n.º 2
0
 def test_no_calculation(self):
     sol = _get_shortest_solution(('x',), ('x',), (), self.methods)
     assert isinstance(sol, tuple)
     assert len(sol) == 3
     assert len(sol[0]) == 0
     assert len(sol[1]) == 0
     assert len(sol[2]) == 0
Ejemplo n.º 3
0
 def test_depth_3_calculation(self):
     _get_shortest_solution(('w',), ('a', 'b'), (), self.methods)
Ejemplo n.º 4
0
 def test_simplest_calculation(self):
     sol = _get_shortest_solution(('y',), ('x',), (), self.methods)
     assert len(sol[0]) == 1
Ejemplo n.º 5
0
 def test_depth_3_calculation(self):
     _get_shortest_solution(('w', ), ('a', 'b'), (), self.methods)
Ejemplo n.º 6
0
 def test_simplest_calculation(self):
     sol = _get_shortest_solution(('y', ), ('x', ), (), self.methods)
     assert len(sol[0]) == 1