Exemple #1
0
 def test_forward(self):
     result = transform(1, 0, 0, 0)
     expected = (1, 1)
     self.assertEqual(result, expected)
Exemple #2
0
 def test_right(self):
     result = transform(0, 0, 0, 1)
     expected = (0, 0)
     self.assertEqual(result, expected)
Exemple #3
0
 def test_idle(self):
     result = transform(0, 0, 0, 0)
     expected = (0, 0)
     self.assertEqual(result, expected)
Exemple #4
0
 def test_reverse_left(self):
     result = transform(0, 1, 1, 0)
     expected = (0, -1)
     self.assertEqual(result, expected)