use NEG_INFINITY and NAN constants instead computing them

This commit is contained in:
Thom Chiovoloni 2020-10-06 12:30:19 -07:00
parent 866971adf5
commit 541369c38e

View File

@ -29,17 +29,16 @@ macro_rules! float_tests {
<$scalar>::MIN,
<$scalar>::MAX,
<$scalar>::INFINITY,
-<$scalar>::INFINITY,
<$scalar>::NEG_INFINITY,
<$scalar>::MIN_POSITIVE,
-<$scalar>::MIN_POSITIVE,
<$scalar>::EPSILON,
-<$scalar>::EPSILON,
0.0 / 0.0,
-0.0 / 0.0,
// Still not sure if wasm can have weird nans, or I'd check them
// too. Until then
1.0 / 3.0,
-1.0 / 4.0
<$scalar>::NAN,
-<$scalar>::NAN,
// TODO: Would be nice to check sNaN...
100.0 / 3.0,
-100.0 / 3.0,
];
#[test]