Incorrect test for deprecated method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@1060488 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
237800189e
commit
0f95495c21
|
@ -365,7 +365,8 @@ public final class MathUtilsTest extends TestCase {
|
|||
assertTrue("+0.0f == -0.0f",MathUtils.equals(0.0f, -0.0f));
|
||||
assertTrue("+0.0f == -0.0f (1 ulp)",MathUtils.equals(0.0f, -0.0f, 1));
|
||||
float oneFloat = 1.0f;
|
||||
assertTrue("1.0f == 1.0f + 1 ulp",MathUtils.equals(oneFloat, Float.intBitsToFloat(1 + Float.floatToIntBits(oneFloat))));
|
||||
// Deprecated method - requires parameters to be strictly equal
|
||||
assertFalse("1.0f != 1.0f + 1 ulp",MathUtils.equals(oneFloat, Float.intBitsToFloat(1 + Float.floatToIntBits(oneFloat))));
|
||||
assertTrue("1.0f == 1.0f + 1 ulp (1 ulp)",MathUtils.equals(oneFloat, Float.intBitsToFloat(1 + Float.floatToIntBits(oneFloat)), 1));
|
||||
assertFalse("1.0f != 1.0f + 2 ulp (1 ulp)",MathUtils.equals(oneFloat, Float.intBitsToFloat(2 + Float.floatToIntBits(oneFloat)), 1));
|
||||
|
||||
|
|
Loading…
Reference in New Issue