Yukihiro "Matz" Matsumoto
2268405fe6
test/math.rb: 10**30 could cause integer overflow; ref #5420
2021-04-21 22:04:20 +09:00
Yukihiro "Matz" Matsumoto
1cc20978cf
Enlarge tolerance limit for float32; close #5329
...
Along with some refactoring on `mruby-math` tests.
2021-02-07 14:56:34 +09:00
Yukihiro "Matz" Matsumoto
08f61db6ee
Skip some Math.atan2() tests.
...
Linux `atan2(3)` man page says:
```
If y is positive infinity (negative infinity) and x is positive infinity,
+pi/4 (-pi/4) is re‐ turned.
```
But on Microsoft VC/MinGW, `atan2()` returns `NaN` if either of
arguments is infinite. So we skip those tests on the platforms.
2020-10-12 18:20:14 +09:00
KOBAYASHI Shuji
d908a73b04
Add tests to Math
2019-12-07 20:50:56 +09:00
KOBAYASHI Shuji
d1f937e1f4
Fix missing assertions in mruby-math test
2019-03-29 09:40:13 +09:00
Yukihiro "Matz" Matsumoto
42f240796f
Use Mrbtest::FLOAT_TOLERANCE instead of Math::TORELANCE; ref #4345
2019-03-28 23:22:32 +09:00
kkkkkt
9c78fc8443
added Math.cos and Math.tan test case
2014-08-05 11:27:50 +09:00
Daniel Bovensiepen
81f96cb9af
Move Math::TOLERANCE to mruby-math
2013-02-28 15:20:46 +00:00
Yukihiro Matz Matsumoto
12af04011f
mv mrgems/mruby-math to mrbgems
2013-02-28 22:41:08 +09:00