Lines Matching refs:assertAlmostEqual
130 self.assertAlmostEqual(
219 self.assertAlmostEqual(answer, expected)
240 self.assertAlmostEqual(abs(Vec2D(2.5, 6)), 6.5)
267 self.assertAlmostEqual(self.nav.xcor(), 100)
268 self.assertAlmostEqual(self.nav.ycor(), -100)
287 self.assertAlmostEqual(self.nav.xcor(), 100)
288 self.assertAlmostEqual(self.nav.ycor(), -100)
290 self.assertAlmostEqual(self.nav.xcor(), 0)
291 self.assertAlmostEqual(self.nav.ycor(), 0)
320 self.assertAlmostEqual(self.nav.distance(Vec2D(0,0)), expected)
324 self.assertAlmostEqual(self.nav.heading(), 90)
326 self.assertAlmostEqual(self.nav.heading(), 1.57079633)
328 self.assertAlmostEqual(self.nav.heading(), 90)
352 self.assertAlmostEqual(self.nav.heading(), 90)
354 self.assertAlmostEqual(self.nav.heading(), 135)
356 self.assertAlmostEqual(self.nav.heading(), 133.4)
381 self.assertAlmostEqual(self.nav.heading(), sum_so_far % 360)
385 self.assertAlmostEqual(self.nav.heading(), 102.32)
387 self.assertAlmostEqual(self.nav.heading(), (-123.23) % 360)
389 self.assertAlmostEqual(self.nav.heading(), (-1000.34) % 360)
391 self.assertAlmostEqual(self.nav.heading(), 300000%360)
409 self.assertAlmostEqual(self.nav.heading(), 0)
412 self.assertAlmostEqual(self.nav.distance(30, 40), 50)
414 self.assertAlmostEqual(self.nav.distance(vec), 0.22000227271553355)
418 self.assertAlmostEqual(self.nav.distance(another_turtle), 10000)