Lines Matching refs:INF
7 INF = float("inf") variable
466 self.assertEqual(repr(complex(1., INF)), "(1+infj)")
467 self.assertEqual(repr(complex(1., -INF)), "(1-infj)")
468 self.assertEqual(repr(complex(INF, 1)), "(inf+1j)")
469 self.assertEqual(repr(complex(-INF, INF)), "(-inf+infj)")
474 self.assertEqual(repr(complex(0, INF)), "infj")
475 self.assertEqual(repr(complex(0, -INF)), "-infj")
502 self.assertEqual(complex(0, INF).__getnewargs__(), (0.0, INF))
503 self.assertEqual(complex(INF, 0).__getnewargs__(), (INF, 0.0))
515 self.assertEqual(complex("1e500"), complex(INF, 0.0))
516 self.assertEqual(complex("-1e500j"), complex(0.0, -INF))
517 self.assertEqual(complex("-1e500+1.8e308j"), complex(-INF, INF))
522 vals = [0.0, 1e-500, 1e-315, 1e-200, 0.0123, 3.1415, 1e50, INF, NAN]
632 self.assertEqual('{0:f}'.format(INF+0j), 'inf+0.000000j')
633 self.assertEqual('{0:F}'.format(INF+0j), 'INF+0.000000j')
634 self.assertEqual('{0:f}'.format(-INF+0j), '-inf+0.000000j')
635 self.assertEqual('{0:F}'.format(-INF+0j), '-INF+0.000000j')
636 self.assertEqual('{0:f}'.format(complex(INF, INF)), 'inf+infj')
637 self.assertEqual('{0:F}'.format(complex(INF, INF)), 'INF+INFj')
638 self.assertEqual('{0:f}'.format(complex(INF, -INF)), 'inf-infj')
639 self.assertEqual('{0:F}'.format(complex(INF, -INF)), 'INF-INFj')
640 self.assertEqual('{0:f}'.format(complex(-INF, INF)), '-inf+infj')
641 self.assertEqual('{0:F}'.format(complex(-INF, INF)), '-INF+INFj')
642 self.assertEqual('{0:f}'.format(complex(-INF, -INF)), '-inf-infj')
643 self.assertEqual('{0:F}'.format(complex(-INF, -INF)), '-INF-INFj')