Lines Matching refs:INF
13 INF = float("inf") variable
293 self.assertTrue(isnan(pow_op(-INF, NAN)))
301 self.assertTrue(isnan(pow_op(INF, NAN)))
305 self.assertTrue(isnan(pow_op(NAN, -INF)))
312 self.assertTrue(isnan(pow_op(NAN, INF)))
336 self.assertEqualAndEqualSign(pow_op(-1.0, -INF), 1.0)
337 self.assertEqualAndEqualSign(pow_op(-1.0, INF), 1.0)
340 self.assertEqualAndEqualSign(pow_op(1.0, -INF), 1.0)
349 self.assertEqualAndEqualSign(pow_op(1.0, INF), 1.0)
353 self.assertEqualAndEqualSign(pow_op(-INF, 0.0), 1.0)
362 self.assertEqualAndEqualSign(pow_op(INF, 0.0), 1.0)
364 self.assertEqualAndEqualSign(pow_op(-INF, -0.0), 1.0)
373 self.assertEqualAndEqualSign(pow_op(INF, -0.0), 1.0)
385 self.assertEqualAndEqualSign(pow_op(-0.5, -INF), INF)
386 self.assertEqualAndEqualSign(pow_op(-0.0, -INF), INF)
387 self.assertEqualAndEqualSign(pow_op(0.0, -INF), INF)
388 self.assertEqualAndEqualSign(pow_op(0.5, -INF), INF)
391 self.assertEqualAndEqualSign(pow_op(-INF, -INF), 0.0)
392 self.assertEqualAndEqualSign(pow_op(-2.0, -INF), 0.0)
393 self.assertEqualAndEqualSign(pow_op(2.0, -INF), 0.0)
394 self.assertEqualAndEqualSign(pow_op(INF, -INF), 0.0)
397 self.assertEqualAndEqualSign(pow_op(-0.5, INF), 0.0)
398 self.assertEqualAndEqualSign(pow_op(-0.0, INF), 0.0)
399 self.assertEqualAndEqualSign(pow_op(0.0, INF), 0.0)
400 self.assertEqualAndEqualSign(pow_op(0.5, INF), 0.0)
403 self.assertEqualAndEqualSign(pow_op(-INF, INF), INF)
404 self.assertEqualAndEqualSign(pow_op(-2.0, INF), INF)
405 self.assertEqualAndEqualSign(pow_op(2.0, INF), INF)
406 self.assertEqualAndEqualSign(pow_op(INF, INF), INF)
409 self.assertEqualAndEqualSign(pow_op(-INF, -1.0), -0.0)
412 self.assertEqualAndEqualSign(pow_op(-INF, -0.5), 0.0)
413 self.assertEqualAndEqualSign(pow_op(-INF, -2.0), 0.0)
416 self.assertEqualAndEqualSign(pow_op(-INF, 1.0), -INF)
419 self.assertEqualAndEqualSign(pow_op(-INF, 0.5), INF)
420 self.assertEqualAndEqualSign(pow_op(-INF, 2.0), INF)
423 self.assertEqualAndEqualSign(pow_op(INF, 0.5), INF)
424 self.assertEqualAndEqualSign(pow_op(INF, 1.0), INF)
425 self.assertEqualAndEqualSign(pow_op(INF, 2.0), INF)
428 self.assertEqualAndEqualSign(pow_op(INF, -2.0), 0.0)
429 self.assertEqualAndEqualSign(pow_op(INF, -1.0), 0.0)
430 self.assertEqualAndEqualSign(pow_op(INF, -0.5), 0.0)
656 self.assertEqual('{0:f}'.format(INF), 'inf')
657 self.assertEqual('{0:F}'.format(INF), 'INF')
658 self.assertEqual('{0:f}'.format(-INF), '-inf')
659 self.assertEqual('{0:F}'.format(-INF), '-INF')
764 self.assertEqual(round(INF), INF)
765 self.assertEqual(round(-INF), -INF)
768 self.assertEqual(round(INF, n), INF)
769 self.assertEqual(round(-INF, n), -INF)
772 self.assertRaises(TypeError, round, INF, 0.0)
773 self.assertRaises(TypeError, round, -INF, 1.0)
903 test(fmt, INF, 'inf')
904 test(fmt, -INF, '-inf')
909 test(pfmt, INF, '+inf')
910 test(pfmt, -INF, '-inf')
915 test(sfmt, INF, ' inf')
916 test(sfmt, -INF, '-inf')
1004 self.assertFalse(INF.is_nan())
1008 self.assertTrue(INF.is_inf())
1111 ('inf', INF),
1112 ('-Infinity', -INF),
1142 self.identical(fromHex('inf'), INF)
1143 self.identical(fromHex('+Inf'), INF)
1144 self.identical(fromHex('-INF'), -INF)
1145 self.identical(fromHex('iNf'), INF)
1146 self.identical(fromHex('Infinity'), INF)
1147 self.identical(fromHex('+INFINITY'), INF)
1148 self.identical(fromHex('-infinity'), -INF)
1149 self.identical(fromHex('-iNFiNitY'), -INF)
1425 for x in [NAN, INF, self.MAX, self.MIN, self.MIN-self.TINY, self.TINY, 0.0]: