Beispiel #1
0
 def test_algorithm_backward_two_iterations_given_example(self):
     result = domino_algorithm(r"||////\\\|////|", "backward", 2)
     self.assertEqual(result, r"||//||||\|//|||")
Beispiel #2
0
 def test_algorithm_backward_two_iterations_two_simultaneous_actions(self):
     result = domino_algorithm(r"|////|\\\||", "backward", 2)
     self.assertEqual(result, r"|//|||||\||")
Beispiel #3
0
 def test_algorithm_forward_given_example(self):
     result = domino_algorithm(r"||//||\||/\|", "forward", 1)
     self.assertEqual(result, r"||///\\||/\|")
Beispiel #4
0
 def test_algorithm_backward_two_iterations(self):
     result = domino_algorithm(r"|////|", "backward", 2)
     self.assertEqual(result, r"|//|||")
Beispiel #5
0
 def test_algorithm_forward_one_iteration(self):
     result = domino_algorithm(r"|//|||", "forward", 1)
     self.assertEqual(result, r"|///||")