Author: sebb Date: Tue Feb 16 17:07:51 2010 New Revision: 910598 URL: http://svn.apache.org/viewvc?rev=910598&view=rev Log: Show chiSquared value
Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RandomUtilsTest.java Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RandomUtilsTest.java URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RandomUtilsTest.java?rev=910598&r1=910597&r2=910598&view=diff ============================================================================== --- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RandomUtilsTest.java (original) +++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/math/RandomUtilsTest.java Tue Feb 16 17:07:51 2010 @@ -122,12 +122,14 @@ /* Use ChiSquare dist with df = 2-1 = 1, alpha = .001 * Change to 6.64 for alpha = .01 */ + double chiSquare = chiSquare(expected,observed); assertTrue( - "mid point chi-square test -- will fail about 1 in 1000 times ", - chiSquare(expected,observed) < 10.83); + "mid point chi-square test -- will fail about 1 in 1000 times: "+chiSquare, + chiSquare < 10.83); + chiSquare = chiSquare(expected,observed2); assertTrue( - "odd/even chi-square test -- will fail about 1 in 1000 times", - chiSquare(expected,observed2) < 10.83); + "odd/even chi-square test -- will fail about 1 in 1000 times: "+chiSquare, + chiSquare < 10.83); } /** test distribution of nextLong() */