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