Converted R-script used for generating JUnit test-cases to JUnit 4.


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083995 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mikkel Meyer Andersen 2011-03-21 22:19:49 +00:00
parent 93230a061a
commit 2b463d7a8a
1 changed files with 2 additions and 2 deletions

View File

@ -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 = "")