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

Method test_positions

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

Source from the content-addressed store, hash-verified

432 self.assertAlmostEqual(self.nav.heading(), 300000%360)
433
434 def test_positions(self):
435 self.nav.forward(100)
436 self.nav.left(90)
437 self.nav.forward(-200)
438 self.assertVectorsAlmostEqual(self.nav.pos(), (100.0, -200.0))
439
440 def test_setx_and_sety(self):
441 self.nav.setx(-1023.2334)

Callers

nothing calls this directly

Calls 4

leftMethod · 0.80
forwardMethod · 0.45
posMethod · 0.45

Tested by

no test coverage detected