Home | History | Annotate | Download | only in test

Lines Matching defs:check

37         # check that relative difference < eps
56 # both zero; check that signs match
69 """Compute complex z=x*y, and check that z/x==y and z/y==x."""
144 def check(n, deltas, is_equal, imag = 0.0):
156 check(2 ** pow, range(1, 101), lambda delta: delta % mult == 0)
157 check(2 ** pow, range(1, 101), lambda delta: False, float(i))
158 check(2 ** 53, range(-100, 0), lambda delta: True)
285 # check that the sign of a zero in the real or imaginary part
340 # check that complex accepts long unicode strings
442 x /= 3.0 # now check against floating point