コード例 #1
0
 def test_1(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Dirty", "Dirty"], 0, []),
                      (["Suck", "Right", "Suck"], 3))
コード例 #2
0
 def test_8(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Clean", "Clean"], 1, []), ([], 0))
コード例 #3
0
 def test_6(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Clean", "Dirty"], 1, []),
                      (["Suck"], 1))
コード例 #4
0
 def test_5(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Clean", "Dirty"], 0, []),
                      (["Right", "Suck"], 2))
コード例 #5
0
 def test_4(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Dirty", "Clean"], 1, []),
                      (["Left", "Suck"], 2))
コード例 #6
0
 def test_2(self):
     vacuuming1 = Vacuum()
     self.assertEqual(vacuuming1.tester(["Dirty", "Dirty"], 1, []),
                      (["Suck", "Left", "Suck"], 3))