This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-rng.git
commit d03726b337653c430789cd18f3d5b9a5d7df21be Author: Alex Herbert <aherb...@apache.org> AuthorDate: Mon Mar 4 21:48:55 2019 +0000 RNG-79: Updated testFloatGeneration internal order --- .../test/java/org/apache/commons/rng/core/util/NumberFactoryTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-rng-core/src/test/java/org/apache/commons/rng/core/util/NumberFactoryTest.java b/commons-rng-core/src/test/java/org/apache/commons/rng/core/util/NumberFactoryTest.java index 40e2989..5638768 100644 --- a/commons-rng-core/src/test/java/org/apache/commons/rng/core/util/NumberFactoryTest.java +++ b/commons-rng-core/src/test/java/org/apache/commons/rng/core/util/NumberFactoryTest.java @@ -151,8 +151,8 @@ public class NumberFactoryTest { Assert.assertEquals(1, Float.intBitsToFloat(0x7f << 23 | allBits >>> 9) - 1.0f, 1e-6); final int noBits = 0; - Assert.assertEquals(0, (noBits >>> 8) * 0x1.0p-24f, 0); Assert.assertEquals(0, (noBits >>> 9) * 0x1.0p-23f, 0); + Assert.assertEquals(0, (noBits >>> 8) * 0x1.0p-24f, 0); Assert.assertEquals(0, Float.intBitsToFloat(0x7f << 23 | noBits >>> 9) - 1.0f, 0); }