commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [1/2] [math] Show more info when this unit test fails.
Date Sat, 02 Jan 2016 20:42:12 GMT
Repository: commons-math
Updated Branches:
  refs/heads/master 75676e5d4 -> bd557f1b8


Show more info when this unit test fails.


Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/66608db5
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/66608db5
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/66608db5

Branch: refs/heads/master
Commit: 66608db56c41e91ee34fdc1e6157d69b69893fad
Parents: 8a8ca83
Author: Gilles <erans@apache.org>
Authored: Sat Jan 2 00:54:30 2016 +0100
Committer: Gilles <erans@apache.org>
Committed: Sat Jan 2 00:54:30 2016 +0100

----------------------------------------------------------------------
 .../apache/commons/math4/random/RandomGeneratorAbstractTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/66608db5/src/test/java/org/apache/commons/math4/random/RandomGeneratorAbstractTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math4/random/RandomGeneratorAbstractTest.java
b/src/test/java/org/apache/commons/math4/random/RandomGeneratorAbstractTest.java
index 1d8af9f..8237d9a 100644
--- a/src/test/java/org/apache/commons/math4/random/RandomGeneratorAbstractTest.java
+++ b/src/test/java/org/apache/commons/math4/random/RandomGeneratorAbstractTest.java
@@ -442,7 +442,7 @@ public abstract class RandomGeneratorAbstractTest extends RandomDataGeneratorTes
         for (int i = 0; i < len; i++) {
             values[1][i] = gen2.nextGaussian();
         }
-        Assert.assertTrue(Arrays.equals(values[0], values[1]));
+        TestUtils.assertEquals(values[0], values[1], 0d);
     }
 
     // MATH-1300


Mime
View raw message