예제 #1
0
 def test_unbalanced(self):
     inputstring = "L.........R"
     self.assertEqual(Solution().pushDominoes(inputstring), "L.........R")
예제 #2
0
 def test_example_string(self):
     inputstring = "..R...L..R."
     self.assertEqual(Solution().pushDominoes(inputstring), "..RR.LL..RR")
예제 #3
0
 def test_balanced(self):
     inputstring = "R.........L"
     self.assertEqual(Solution().pushDominoes(inputstring), "RRRRR.LLLLL")
예제 #4
0
 def test_in_middle(self):
     inputstring = "..R.."
     self.assertEqual(Solution().pushDominoes(inputstring), "..RRR")
예제 #5
0
 def test_R_on_left(self):
     inputstring = "R...."
     self.assertEqual(Solution().pushDominoes(inputstring), "RRRRR")
예제 #6
0
 def test_L_on_right(self):
     inputstring = "....L"
     self.assertEqual(Solution().pushDominoes(inputstring), "LLLLL")
예제 #7
0
 def test_nochange(self):
     inputstring = "......"
     self.assertEqual(Solution().pushDominoes(inputstring), "......")
     input2 = "RRRR"
     self.assertEqual(Solution().pushDominoes(input2), "RRRR")