Skip to content

Commit 3e8b74f

Browse files
committed
Update geometry tests
1 parent 096dc21 commit 3e8b74f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/geometry_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,14 +619,14 @@ def test_diameter_del(self):
619619

620620
def test__str__(self):
621621
"""Checks whether the __str__ method works correctly."""
622-
c_str = "<Circle((10.3, 3.2), 4.3)>"
622+
c_str = "Circle((10.3, 3.2), 4.3)"
623623
circle = Circle((10.3, 3.2), 4.3)
624624
self.assertEqual(str(circle), c_str)
625625
self.assertEqual(circle.__str__(), c_str)
626626

627627
def test__repr__(self):
628628
"""Checks whether the __repr__ method works correctly."""
629-
c_repr = "<Circle((10.3, 3.2), 4.3)>"
629+
c_repr = "Circle((10.3, 3.2), 4.3)"
630630
circle = Circle((10.3, 3.2), 4.3)
631631
self.assertEqual(repr(circle), c_repr)
632632
self.assertEqual(circle.__repr__(), c_repr)
@@ -2203,14 +2203,14 @@ def test_meth_update(self):
22032203

22042204
def test__str__(self):
22052205
"""Checks whether the __str__ method works correctly."""
2206-
l_str = "<Line((10.1, 10.2), (4.3, 56.4))>"
2206+
l_str = "Line((10.1, 10.2), (4.3, 56.4))"
22072207
line = Line(10.1, 10.2, 4.3, 56.4)
22082208
self.assertEqual(str(line), l_str)
22092209
self.assertEqual(line.__str__(), l_str)
22102210

22112211
def test__repr__(self):
22122212
"""Checks whether the __repr__ method works correctly."""
2213-
l_repr = "<Line((10.1, 10.2), (4.3, 56.4))>"
2213+
l_repr = "Line((10.1, 10.2), (4.3, 56.4))"
22142214
line = Line(10.1, 10.2, 4.3, 56.4)
22152215
self.assertEqual(repr(line), l_repr)
22162216
self.assertEqual(line.__repr__(), l_repr)

0 commit comments

Comments
 (0)