def test_simple_move(self): commands_from_0_0_to_0_1 = """0 1\n0 0 N\nM""" expected = "0 1 N" actual = control.launch_mission(commands_from_0_0_to_0_1) self.assertEqual(actual, expected)
def test_example(self): input = """5 5 1 2 N LMLMLMLMM 3 3 E MMRMMRMRRM""" expected = """1 3 N 5 1 E""" actual = control.launch_mission(input) self.assertEqual(actual, expected)