MCPcopy Index your code
hub / github.com/python/cpython / test_repr

Method test_repr

Lib/test/test_turtle.py:189–191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

187 self.assertRaises(TypeError, Vec2D, 0, 1, 2)
188
189 def test_repr(self):
190 vec = Vec2D(0.567, 1.234)
191 self.assertEqual(repr(vec), '(0.57,1.23)')
192
193 def test_equality(self):
194 vec1 = Vec2D(0, 1)

Callers

nothing calls this directly

Calls 2

Vec2DClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected