commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r1083995 - /commons/proper/math/trunk/src/test/R/KolmogorovSmirnovDistributionTestCases.R
Date Mon, 21 Mar 2011 22:19:49 GMT
Author: mikl
Date: Mon Mar 21 22:19:49 2011
New Revision: 1083995

URL: http://svn.apache.org/viewvc?rev=1083995&view=rev
Log:
MATH-437
Converted R-script used for generating JUnit test-cases to JUnit 4.

Modified:
    commons/proper/math/trunk/src/test/R/KolmogorovSmirnovDistributionTestCases.R

Modified: commons/proper/math/trunk/src/test/R/KolmogorovSmirnovDistributionTestCases.R
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/R/KolmogorovSmirnovDistributionTestCases.R?rev=1083995&r1=1083994&r2=1083995&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/R/KolmogorovSmirnovDistributionTestCases.R (original)
+++ commons/proper/math/trunk/src/test/R/KolmogorovSmirnovDistributionTestCases.R Mon Mar
21 22:19:49 2011
@@ -12,8 +12,8 @@ for (n in ns) {
     cat(" */\n")
     
     cat("dist = new KolmogorovSmirnovDistributionImpl(", n, ");\n", sep = "")
-    #cat("assertEquals(", formatC(res, digits = 40), ", dist.cdf(", p, ", true), TOLERANCE);\n",
sep = "")
-    cat("assertEquals(", formatC(res, digits = 40), ", dist.cdf(", p, ", false), TOLERANCE);\n",
sep = "")
+    #cat("Assert.assertEquals(", formatC(res, digits = 40), ", dist.cdf(", p, ", true), TOLERANCE);\n",
sep = "")
+    cat("Assert.assertEquals(", formatC(res, digits = 40), ", dist.cdf(", p, ", false), TOLERANCE);\n",
sep = "")
     cat("\n")
     
     #cat("System.out.println(\"", formatC(res, digits = 20), " - \" + dist.cdf(", p, ", false)
+ \" = \" + (", res, " - dist.cdf(", p, ", false)));\n", sep = "")



Mime
View raw message