From 55be8b1c68e3c80f387a46c81332ea5d97f89410 Mon Sep 17 00:00:00 2001 From: Pascal Lais Date: Sun, 22 Mar 2020 17:45:02 +0100 Subject: [PATCH] Add test for str() for class Point --- test/test_point.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_point.py b/test/test_point.py index 366f73a..877e62b 100644 --- a/test/test_point.py +++ b/test/test_point.py @@ -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"""