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

Method test_vector_negative

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

Source from the content-addressed store, hash-verified

263 self.assertEqual(M * vec, f'M*{vec}')
264
265 def test_vector_negative(self):
266 vec = Vec2D(10, -10)
267 expected = (-10, 10)
268 self.assertVectorsAlmostEqual(-vec, expected)
269
270 def test_distance(self):
271 self.assertAlmostEqual(abs(Vec2D(6, 8)), 10)

Callers

nothing calls this directly

Calls 2

Vec2DClass · 0.70

Tested by

no test coverage detected