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 42afd67e68f4e439672cf76099f9408b5719bb0b
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Thu May 6 20:52:49 2021 +0100

    Update assertion message to remove formatted double value.
    
    The formatted string is inside a loop called thousands of times and is
    dropped to reduce overhead. The seed is fixed and the failure can be
    reproduced if required.
---
 .../java/org/apache/commons/rng/sampling/shape/LineSamplerTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/shape/LineSamplerTest.java
 
b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/shape/LineSamplerTest.java
index 000a374..cf95925 100644
--- 
a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/shape/LineSamplerTest.java
+++ 
b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/shape/LineSamplerTest.java
@@ -252,7 +252,7 @@ public class LineSamplerTest {
                 final double[] x = sampler.sample();
                 Assert.assertEquals(dimension, x.length);
                 final double c = (x[0] - a[0]) * scale[0];
-                Assert.assertTrue("Not uniformly distributed: " + c, c >= 0.0 
&& c <= 1.0);
+                Assert.assertTrue("Not uniformly distributed", c >= 0.0 && c 
<= 1.0);
                 for (int j = 1; j < dimension; j++) {
                     Assert.assertEquals("Not on the line", c, (x[j] - a[j]) * 
scale[j], 1e-14);
                 }

Reply via email to