• Home
  • Raw
  • Download

Lines Matching refs:assertAlmostEqual

199         self.assertAlmostEqual(float(Foo0()), 42.)
200 self.assertAlmostEqual(float(Foo1()), 42.)
201 self.assertAlmostEqual(float(Foo2()), 42.)
202 self.assertAlmostEqual(float(Foo3(21)), 42.)
204 self.assertAlmostEqual(float(FooUnicode('8')), 9.)
205 self.assertAlmostEqual(float(FooStr('8')), 9.)
216 self.assertAlmostEqual(float(F()), 42.)
218 self.assertAlmostEqual(FloatSubclass(F()), 42.)
752 self.assertAlmostEqual(round(12.34, True), 12.3)
756 self.assertAlmostEqual(round(-0.123456, MyIndex()), -0.1235)
816 self.assertAlmostEqual(round(0.125, 2), 0.13)
817 self.assertAlmostEqual(round(0.375, 2), 0.38)
818 self.assertAlmostEqual(round(0.625, 2), 0.63)
819 self.assertAlmostEqual(round(0.875, 2), 0.88)
820 self.assertAlmostEqual(round(-0.125, 2), -0.13)
821 self.assertAlmostEqual(round(-0.375, 2), -0.38)
822 self.assertAlmostEqual(round(-0.625, 2), -0.63)
823 self.assertAlmostEqual(round(-0.875, 2), -0.88)
825 self.assertAlmostEqual(round(0.25, 1), 0.3)
826 self.assertAlmostEqual(round(0.75, 1), 0.8)
827 self.assertAlmostEqual(round(-0.25, 1), -0.3)
828 self.assertAlmostEqual(round(-0.75, 1), -0.8)
874 self.assertAlmostEqual(round(0.5e21, -21), 1e21)
875 self.assertAlmostEqual(round(1.5e21, -21), 2e21)
876 self.assertAlmostEqual(round(2.5e21, -21), 3e21)
877 self.assertAlmostEqual(round(5.5e21, -21), 6e21)
878 self.assertAlmostEqual(round(8.5e21, -21), 9e21)
880 self.assertAlmostEqual(round(-1.5e22, -22), -2e22)
881 self.assertAlmostEqual(round(-0.5e22, -22), -1e22)
882 self.assertAlmostEqual(round(0.5e22, -22), 1e22)
883 self.assertAlmostEqual(round(1.5e22, -22), 2e22)