feat: codewars kata object oriented piracy. test: test codewars test object oriented piracy. chore: README updated for kata
This commit is contained in:
1 parent
515df4d452
commit
da15c756d4
3 files changed
+23
No files matched your search
@@ -0,0 +1,15 @@
|
||||
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()
|
||||
Reference in new issue
Block a user