Add test for str() for class Point
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -24,6 +24,7 @@ def test_set_coordinates():
|
||||
assert pnt.get_x() == 321
|
||||
pnt.set_y(456)
|
||||
assert pnt.get_y() == 456
|
||||
assert str(pnt) == "(321/456)"
|
||||
|
||||
def test_get_random():
|
||||
"""Test setting random points"""
|
||||
|
||||
Reference in New Issue
Block a user