Beispiel #1
0
def test_turn_with_invalid_turn_raises_invalid_turn():
    heading.turn(None, heading.headings.NORTH)
Beispiel #2
0
def test_turn_left():
    for left, right in turns:
        assert_equals(heading.turn(direction.LEFT, right), left)
Beispiel #3
0
def test_turn_with_invalid_heading_raises_invalid_turn():
    heading.turn(direction.LEFT, None)
Beispiel #4
0
def test_turn_right():
    for left, right in turns:
        assert_equals(heading.turn(direction.RIGHT, left), right)