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

Method test_left

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

Source from the content-addressed store, hash-verified

314 self.assertEqual(self.nav.pos(), self.nav._position)
315
316 def test_left(self):
317 self.assertEqual(self.nav._orient, (1.0, 0))
318 self.nav.left(90)
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))

Callers

nothing calls this directly

Calls 3

leftMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected