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

Method test_vector_addition

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

Source from the content-addressed store, hash-verified

225 self.assertVectorsAlmostEqual(result, expected)
226
227 def test_vector_addition(self):
228
229 test_cases = [
230 (((0, 0), (1, 1)), (1.0, 1.0)),
231 (((-1, 0), (2, 2)), (1, 2)),
232 (((1.5, 0), (1, 1)), (2.5, 1)),
233 ]
234
235 self._assert_arithmetic_cases(test_cases, lambda x, y: x + y)
236
237 def test_vector_subtraction(self):
238

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected