March 2018
Intermediate to advanced
324 pages
8h 30m
English
Using the same guidelines as those we have used so far, the specification for turning left can be the following:
public void whenTurnLeftThenLeft() {
Location expected = location.copy();
expected.turnLeft();
ship.turnLeft();
assertEquals(ship.getLocation(), expected);
}
Read now
Unlock full access