Lines Matching refs:INF
7 INF = float("inf") variable
455 for x in 0.0, -0.0, INF, -INF, NAN:
456 for y in 0.0, -0.0, INF, -INF, NAN:
495 self.assertEqual(repr(complex(1., INF)), "(1+infj)")
496 self.assertEqual(repr(complex(1., -INF)), "(1-infj)")
497 self.assertEqual(repr(complex(INF, 1)), "(inf+1j)")
498 self.assertEqual(repr(complex(-INF, INF)), "(-inf+infj)")
503 self.assertEqual(repr(complex(0, INF)), "infj")
504 self.assertEqual(repr(complex(0, -INF)), "-infj")
531 self.assertEqual(complex(0, INF).__getnewargs__(), (0.0, INF))
532 self.assertEqual(complex(INF, 0).__getnewargs__(), (INF, 0.0))
544 self.assertEqual(complex("1e500"), complex(INF, 0.0))
545 self.assertEqual(complex("-1e500j"), complex(0.0, -INF))
546 self.assertEqual(complex("-1e500+1.8e308j"), complex(-INF, INF))
551 vals = [0.0, 1e-500, 1e-315, 1e-200, 0.0123, 3.1415, 1e50, INF, NAN]
661 self.assertEqual('{0:f}'.format(INF+0j), 'inf+0.000000j')
662 self.assertEqual('{0:F}'.format(INF+0j), 'INF+0.000000j')
663 self.assertEqual('{0:f}'.format(-INF+0j), '-inf+0.000000j')
664 self.assertEqual('{0:F}'.format(-INF+0j), '-INF+0.000000j')
665 self.assertEqual('{0:f}'.format(complex(INF, INF)), 'inf+infj')
666 self.assertEqual('{0:F}'.format(complex(INF, INF)), 'INF+INFj')
667 self.assertEqual('{0:f}'.format(complex(INF, -INF)), 'inf-infj')
668 self.assertEqual('{0:F}'.format(complex(INF, -INF)), 'INF-INFj')
669 self.assertEqual('{0:f}'.format(complex(-INF, INF)), '-inf+infj')
670 self.assertEqual('{0:F}'.format(complex(-INF, INF)), '-INF+INFj')
671 self.assertEqual('{0:f}'.format(complex(-INF, -INF)), '-inf-infj')
672 self.assertEqual('{0:F}'.format(complex(-INF, -INF)), '-INF-INFj')