Lines Matching refs:assertAlmostEqual
90 self.assertAlmostEqual(round2(0.125, 2), 0.13)
91 self.assertAlmostEqual(round2(0.375, 2), 0.38)
92 self.assertAlmostEqual(round2(0.625, 2), 0.63)
93 self.assertAlmostEqual(round2(0.875, 2), 0.88)
94 self.assertAlmostEqual(round2(-0.125, 2), -0.13)
95 self.assertAlmostEqual(round2(-0.375, 2), -0.38)
96 self.assertAlmostEqual(round2(-0.625, 2), -0.63)
97 self.assertAlmostEqual(round2(-0.875, 2), -0.88)
99 self.assertAlmostEqual(round2(0.25, 1), 0.3)
100 self.assertAlmostEqual(round2(0.75, 1), 0.8)
101 self.assertAlmostEqual(round2(-0.25, 1), -0.3)
102 self.assertAlmostEqual(round2(-0.75, 1), -0.8)
149 self.assertAlmostEqual(round2(0.5e21, -21), 1e21)
150 self.assertAlmostEqual(round2(1.5e21, -21), 2e21)
151 self.assertAlmostEqual(round2(2.5e21, -21), 3e21)
152 self.assertAlmostEqual(round2(5.5e21, -21), 6e21)
153 self.assertAlmostEqual(round2(8.5e21, -21), 9e21)
155 self.assertAlmostEqual(round2(-1.5e22, -22), -2e22)
156 self.assertAlmostEqual(round2(-0.5e22, -22), -1e22)
157 self.assertAlmostEqual(round2(0.5e22, -22), 1e22)
158 self.assertAlmostEqual(round2(1.5e22, -22), 2e22)
175 self.assertAlmostEqual(round3(0.125, 2), 0.12)
176 self.assertAlmostEqual(round3(0.375, 2), 0.38)
177 self.assertAlmostEqual(round3(0.625, 2), 0.62)
178 self.assertAlmostEqual(round3(0.875, 2), 0.88)
179 self.assertAlmostEqual(round3(-0.125, 2), -0.12)
180 self.assertAlmostEqual(round3(-0.375, 2), -0.38)
181 self.assertAlmostEqual(round3(-0.625, 2), -0.62)
182 self.assertAlmostEqual(round3(-0.875, 2), -0.88)
184 self.assertAlmostEqual(round3(0.25, 1), 0.2)
185 self.assertAlmostEqual(round3(0.75, 1), 0.8)
186 self.assertAlmostEqual(round3(-0.25, 1), -0.2)
187 self.assertAlmostEqual(round3(-0.75, 1), -0.8)
242 self.assertAlmostEqual(round3(0.5e21, -21), 0.0)
243 self.assertAlmostEqual(round3(1.5e21, -21), 2e21)
244 self.assertAlmostEqual(round3(2.5e21, -21), 2e21)
245 self.assertAlmostEqual(round3(5.5e21, -21), 6e21)
246 self.assertAlmostEqual(round3(8.5e21, -21), 8e21)
248 self.assertAlmostEqual(round3(-1.5e22, -22), -2e22)
249 self.assertAlmostEqual(round3(-0.5e22, -22), 0.0)
250 self.assertAlmostEqual(round3(0.5e22, -22), 0.0)
251 self.assertAlmostEqual(round3(1.5e22, -22), 2e22)