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

Method test_radians_and_degrees

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

Source from the content-addressed store, hash-verified

361 self.assertAlmostEqual(self.nav.distance(Vec2D(0,0)), expected)
362
363 def test_radians_and_degrees(self):
364 self.nav.left(90)
365 self.assertAlmostEqual(self.nav.heading(), 90)
366 self.nav.radians()
367 self.assertAlmostEqual(self.nav.heading(), 1.57079633)
368 self.nav.degrees()
369 self.assertAlmostEqual(self.nav.heading(), 90)
370
371 def test_towards(self):
372

Callers

nothing calls this directly

Calls 5

leftMethod · 0.80
radiansMethod · 0.80
degreesMethod · 0.80
assertAlmostEqualMethod · 0.45
headingMethod · 0.45

Tested by

no test coverage detected