mirror of
https://github.com/python/cpython.git
synced 2026-02-27 17:41:12 +00:00
libm result is 0). Cautiously add a few libm exception test cases: 1. That exp(-huge) returns 0 without exception. 2. That exp(+huge) triggers OverflowError. 3. That sqrt(-1) raises ValueError specifically (apparently under glibc linked with -lieee, it was raising OverflowError due to an accident of the way mathmodule.c's CHECK() macro happened to deal with Infs and NaNs under gcc).
27 lines
182 B
Text
27 lines
182 B
Text
test_math
|
|
math module, testing with eps 1e-05
|
|
constants
|
|
acos
|
|
asin
|
|
atan
|
|
atan2
|
|
ceil
|
|
cos
|
|
cosh
|
|
exp
|
|
fabs
|
|
floor
|
|
fmod
|
|
frexp
|
|
hypot
|
|
ldexp
|
|
log
|
|
log10
|
|
modf
|
|
pow
|
|
sin
|
|
sinh
|
|
sqrt
|
|
tan
|
|
tanh
|
|
exceptions
|