tests/float: Test domain errors for more combos of args to math funcs.

Instead of having a special set of arguments to test for each math-module
function, just test all functions with all sets of arguments.  This gives
improved test cases to prevent regressions.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2023-06-16 12:08:34 +10:00
parent 47dc7d0130
commit ed962f1f23
3 changed files with 94 additions and 44 deletions

View File

@@ -0,0 +1,5 @@
pow(0.0000, -inf) = inf
log(0.0000, -inf) = ValueError
fmod(0.0000, -inf) = 0.0000
atan2(0.0000, -inf) = 3.1416
copysign(0.0000, -inf) = -0.0000