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

Method test_right

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

Source from the content-addressed store, hash-verified

319 self.assertVectorsAlmostEqual(self.nav._orient, (0.0, 1.0))
320
321 def test_right(self):
322 self.assertEqual(self.nav._orient, (1.0, 0))
323 self.nav.right(90)
324 self.assertVectorsAlmostEqual(self.nav._orient, (0, -1.0))
325
326 def test_reset(self):
327 self.nav.goto(100, -100)

Callers

nothing calls this directly

Calls 3

rightMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected