16 lines
343 B
Python
16 lines
343 B
Python
from src.codewars.kata_object_oriented_piracy import Ship
|
|
|
|
|
|
def test_piracy():
|
|
empty_ship = Ship(0, 0)
|
|
assert not empty_ship.is_worth_it()
|
|
|
|
boat = Ship(15, 20)
|
|
assert not boat.is_worth_it()
|
|
|
|
worthy_ship = Ship(100, 20)
|
|
assert worthy_ship.is_worth_it()
|
|
|
|
big_boat = Ship(35, 20)
|
|
assert not big_boat.is_worth_it()
|