kata/rover/test_rover.py

12 lines
287 B
Python

from rover import Rover
def test_rover_constructor():
rov = Rover(pos=(0, 0), planet_size=(100, 100))
assert rov.pos == (0, 0) and rov.planet_size == (100, 100)
def test_rover_default_values():
rov = Rover()
assert rov.pos == (0, 0) and rov.planet_size == (100, 100)