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