Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_cmath Namespace Reference

Classes

class  CMathTests

Functions

def test_main

Variables

tuple INF = float('inf')
tuple NAN = float('nan')
list complex_zeros = [complex(x, y) for x in [0.0, -0.0] for y in [0.0, -0.0]]
list complex_infinities
list complex_nans

Function Documentation

Definition at line 536 of file test_cmath.py.

00536 
00537 def test_main():
00538     run_unittest(CMathTests)

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 [complex(x, y) for x, y in [
00002         (INF, 0.0),  # 1st quadrant
00003         (INF, 2.3),
00004         (INF, INF),
00005         (2.3, INF),
00006         (0.0, INF),
00007         (-0.0, INF), # 2nd quadrant
00008         (-2.3, INF),
00009         (-INF, INF),
00010         (-INF, 2.3),
00011         (-INF, 0.0),
00012         (-INF, -0.0), # 3rd quadrant
00013         (-INF, -2.3),
00014         (-INF, -INF),
00015         (-2.3, -INF),
00016         (-0.0, -INF),
00017         (0.0, -INF), # 4th quadrant
00018         (2.3, -INF),
00019         (INF, -INF),
00020         (INF, -2.3),
00021         (INF, -0.0)
00022         ]]

Definition at line 12 of file test_cmath.py.

Initial value:
00001 [complex(x, y) for x, y in [
00002         (NAN, -INF),
00003         (NAN, -2.3),
00004         (NAN, -0.0),
00005         (NAN, 0.0),
00006         (NAN, 2.3),
00007         (NAN, INF),
00008         (-INF, NAN),
00009         (-2.3, NAN),
00010         (-0.0, NAN),
00011         (0.0, NAN),
00012         (2.3, NAN),
00013         (INF, NAN)
00014         ]]

Definition at line 34 of file test_cmath.py.

list test.test_cmath.complex_zeros = [complex(x, y) for x in [0.0, -0.0] for y in [0.0, -0.0]]

Definition at line 11 of file test_cmath.py.

tuple test.test_cmath.INF = float('inf')

Definition at line 8 of file test_cmath.py.

tuple test.test_cmath.NAN = float('nan')

Definition at line 9 of file test_cmath.py.