Lines Matching defs:check
84 # both zero; check that signs match
124 # if both a and b are zero, check whether they have the same sign
186 # a variety of non-complex numbers, used to check that
287 # check that corresponding cmath and math functions are equal
422 def check(arg, expected):
426 check(0, (0., 0.))
427 check(1, (1., 0.))
428 check(-1, (1., pi))
429 check(1j, (1., pi / 2))
430 check(-3j, (3., -pi / 2))
432 check(complex(inf, 0), (inf, 0.))
433 check(complex(-inf, 0), (inf, pi))
434 check(complex(3, inf), (inf, pi / 2))
435 check(complex(5, -inf), (inf, -pi / 2))
436 check(complex(inf, inf), (inf, pi / 4))
437 check(complex(inf, -inf), (inf, -pi / 4))
438 check(complex(-inf, inf), (inf, 3 * pi / 4))
439 check(complex(-inf, -inf), (inf, -3 * pi / 4))
441 check(complex(nan, 0), (nan, nan))
442 check(complex(0, nan), (nan, nan))
443 check(complex(nan, nan), (nan, nan))
444 check(complex(inf, nan), (inf, nan))
445 check(complex(-inf, nan), (inf, nan))
446 check(complex(nan, inf), (inf, nan))
447 check(complex(nan, -inf), (inf, nan))
454 # Issue #24489: check a previously set C errno doesn't disturb polar()