예제 #1
0
파일: tests.py 프로젝트: jjhelmus/atmos
 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
예제 #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
예제 #3
0
파일: tests.py 프로젝트: jjhelmus/atmos
 def test_depth_3_calculation(self):
     _get_shortest_solution(('w',), ('a', 'b'), (), self.methods)
예제 #4
0
파일: tests.py 프로젝트: jjhelmus/atmos
 def test_simplest_calculation(self):
     sol = _get_shortest_solution(('y',), ('x',), (), self.methods)
     assert len(sol[0]) == 1
예제 #5
0
파일: tests.py 프로젝트: jjhelmus/atmos
 def test_depth_3_calculation(self):
     _get_shortest_solution(('w', ), ('a', 'b'), (), self.methods)
예제 #6
0
파일: tests.py 프로젝트: jjhelmus/atmos
 def test_simplest_calculation(self):
     sol = _get_shortest_solution(('y', ), ('x', ), (), self.methods)
     assert len(sol[0]) == 1