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