Ejemplo n.º 1
0
 def test_left_spin_keyerror(self):
     with self.assertRaises(KeyError):
         MarsRoverInstructions.left_spin('NE')
 def test_left_spin_keyerror(self):
     with self.assertRaises(KeyError):
         MarsRoverInstructions.left_spin('NE')
Ejemplo n.º 3
0
 def test_left_spin(self):
     self.assertEqual(MarsRoverInstructions.left_spin('N'), 'W')
     self.assertEqual(MarsRoverInstructions.left_spin('W'), 'S')
     self.assertEqual(MarsRoverInstructions.left_spin('S'), 'E')
     self.assertEqual(MarsRoverInstructions.left_spin('E'), 'N')
 def test_left_spin(self):
     self.assertEqual(MarsRoverInstructions.left_spin('N'), 'W')
     self.assertEqual(MarsRoverInstructions.left_spin('W'), 'S')
     self.assertEqual(MarsRoverInstructions.left_spin('S'), 'E')
     self.assertEqual(MarsRoverInstructions.left_spin('E'), 'N')