Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(35761)

Delta Between Two Patch Sets: Lib/test/test_complex.py

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 5 years, 11 months ago
Right Patch Set: Created 5 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_compile.py ('k') | Lib/test/test_concurrent_futures.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 import unittest 1 import unittest
2 from test import support 2 from test import support
3 3
4 from random import random 4 from random import random
5 from math import atan2, isnan, copysign 5 from math import atan2, isnan, copysign
6 import operator 6 import operator
7 7
8 INF = float("inf") 8 INF = float("inf")
9 NAN = float("nan") 9 NAN = float("nan")
10 # These tests ensure that complex math does the right thing 10 # These tests ensure that complex math does the right thing
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 self.assertEqual(format(complex(INF, INF), 'F'), 'INF+INFj') 629 self.assertEqual(format(complex(INF, INF), 'F'), 'INF+INFj')
630 self.assertEqual(format(complex(1, INF), 'F'), '1.000000+INFj') 630 self.assertEqual(format(complex(1, INF), 'F'), '1.000000+INFj')
631 self.assertEqual(format(complex(INF, 1), 'F'), 'INF+1.000000j') 631 self.assertEqual(format(complex(INF, 1), 'F'), 'INF+1.000000j')
632 self.assertEqual(format(complex(INF, -1), 'F'), 'INF-1.000000j') 632 self.assertEqual(format(complex(INF, -1), 'F'), 'INF-1.000000j')
633 633
634 def test_main(): 634 def test_main():
635 support.run_unittest(ComplexTest) 635 support.run_unittest(ComplexTest)
636 636
637 if __name__ == "__main__": 637 if __name__ == "__main__":
638 test_main() 638 test_main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+