Guest User

Untitled

a guest
Feb 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. def 'Mars Rover should move forwards when facing north' () {
  2.  
  3. given: 'Moving a new rover forwards'
  4. Rover rover = new Rover(1, 1, Compass.NORTH)
  5. rover.move(Movements.FORWARD)
  6.  
  7. expect: 'The correct position'
  8. rover.getPosition().x == 1
  9. rover.getPosition().y == 2
  10. }
Add Comment
Please, Sign In to add comment