def test_forward(self): result = transform(1, 0, 0, 0) expected = (1, 1) self.assertEqual(result, expected)
def test_right(self): result = transform(0, 0, 0, 1) expected = (0, 0) self.assertEqual(result, expected)
def test_idle(self): result = transform(0, 0, 0, 0) expected = (0, 0) self.assertEqual(result, expected)
def test_reverse_left(self): result = transform(0, 1, 1, 0) expected = (0, -1) self.assertEqual(result, expected)