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>::MIN,
<$scalar>::MAX, <$scalar>::MAX,
<$scalar>::INFINITY, <$scalar>::INFINITY,
-<$scalar>::INFINITY, <$scalar>::NEG_INFINITY,
<$scalar>::MIN_POSITIVE, <$scalar>::MIN_POSITIVE,
-<$scalar>::MIN_POSITIVE, -<$scalar>::MIN_POSITIVE,
<$scalar>::EPSILON, <$scalar>::EPSILON,
-<$scalar>::EPSILON, -<$scalar>::EPSILON,
0.0 / 0.0, <$scalar>::NAN,
-0.0 / 0.0, -<$scalar>::NAN,
// Still not sure if wasm can have weird nans, or I'd check them // TODO: Would be nice to check sNaN...
// too. Until then 100.0 / 3.0,
1.0 / 3.0, -100.0 / 3.0,
-1.0 / 4.0
]; ];
#[test] #[test]