Browse files

New Test outputs

Signed-off-by: Jan Menzel <menzel.jm@googlemail.com>
  • Loading branch information...
1 parent 0b246e0 commit b9689de4a927d02a3a0ae5795f0668df593c945a @jmenzel jmenzel committed Apr 11, 2012
View
2 Aufgabe 1/build/built-jar.properties
@@ -1,4 +1,4 @@
-#Wed, 11 Apr 2012 11:17:57 +0200
+#Wed, 11 Apr 2012 11:58:51 +0200
C\:\\Users\\jmenzel\\Desktop\\AD\\AD-2012-SS\\Aufgabe\ 1=
View
BIN Aufgabe 1/build/test/classes/adintervall/IntervalTest.class
Binary file not shown.
View
149 Aufgabe 1/build/test/results/TEST-adintervall.IntervalTest.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite errors="0" failures="0" hostname="JMRotable" name="adintervall.IntervalTest" tests="32" time="1.045" timestamp="2012-04-11T09:17:58">
+<testsuite errors="0" failures="0" hostname="JMRotable" name="adintervall.IntervalTest" tests="32" time="1.03" timestamp="2012-04-11T09:58:53">
<properties>
<property name="default.javac.source" value="1.7" />
<property name="file.encoding.pkg" value="sun.io" />
@@ -87,7 +87,7 @@
<property name="libs.JAXB-ENDORSED.src" value="" />
<property name="libs.hibernate-persistence.javadoc" value="" />
<property name="libs.ejb3-persistence.classpath" value="C:\Program Files\NetBeans 7.1.1\java\modules\ext\hibernate\ejb3-persistence.jar" />
- <property name="sun.java.command" value="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner adintervall.IntervalTest filtertrace=true haltOnError=false haltOnFailure=false showoutput=true outputtoformatters=true logfailedtests=true logtestlistenerevents=true formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,C:\Users\jmenzel\Desktop\AD\AD-2012-SS\Aufgabe 1\build\test\results\TEST-adintervall.IntervalTest.xml crashfile=C:\Users\jmenzel\Desktop\AD\AD-2012-SS\Aufgabe 1\build\junitvmwatcher7600552025313819518.properties propsfile=C:\Users\jmenzel\Desktop\AD\AD-2012-SS\Aufgabe 1\build\junit1783206424951819278.properties" />
+ <property name="sun.java.command" value="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner adintervall.IntervalTest filtertrace=true haltOnError=false haltOnFailure=false showoutput=true outputtoformatters=true logfailedtests=true logtestlistenerevents=true formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,C:\Users\jmenzel\Desktop\AD\AD-2012-SS\Aufgabe 1\build\test\results\TEST-adintervall.IntervalTest.xml crashfile=C:\Users\jmenzel\Desktop\AD\AD-2012-SS\Aufgabe 1\build\junitvmwatcher3506004838806480258.properties propsfile=C:\Users\jmenzel\Desktop\AD\AD-2012-SS\Aufgabe 1\build\junit5766781192151216602.properties" />
<property name="built-jar.properties" value="C:\Users\jmenzel\Desktop\AD\AD-2012-SS\Aufgabe 1\build\built-jar.properties" />
<property name="ant.file.type.ADIntervall-impl" value="file" />
<property name="libs.junit.src" value="" />
@@ -284,39 +284,102 @@
<property name="mkdist.disabled" value="false" />
<property name="sun.arch.data.model" value="64" />
</properties>
- <testcase classname="adintervall.IntervalTest" name="testFactory" time="0.015" />
- <testcase classname="adintervall.IntervalTest" name="testContains" time="0.0" />
- <testcase classname="adintervall.IntervalTest" name="testEquals" time="0.016" />
- <testcase classname="adintervall.IntervalTest" name="testLength" time="0.062" />
- <testcase classname="adintervall.IntervalTest" name="testPlus" time="0.359" />
- <testcase classname="adintervall.IntervalTest" name="testMinus" time="0.141" />
- <testcase classname="adintervall.IntervalTest" name="testMul" time="0.202" />
- <testcase classname="adintervall.IntervalTest" name="testDiv" time="0.032" />
- <testcase classname="adintervall.IntervalTest" name="testnewNai" time="0.0" />
- <testcase classname="adintervall.IntervalTest" name="testKomm" time="0.0" />
- <testcase classname="adintervall.IntervalTest" name="testUnion" time="0.0" />
- <testcase classname="adintervall.IntervalTest" name="test_less" time="0.0" />
- <testcase classname="adintervall.IntervalTest" name="test_greater" time="0.0" />
- <testcase classname="adintervall.IntervalTest" name="test_pLess" time="0.0" />
- <testcase classname="adintervall.IntervalTest" name="test_less_d" time="0.0" />
- <testcase classname="adintervall.IntervalTest" name="test_pLess_d" time="0.0" />
- <testcase classname="adintervall.IntervalTest" name="test_square" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="get_bounds_test" time="0.016" />
<testcase classname="adintervall.IntervalTest" name="testequalsnew" time="0.0" />
- <testcase classname="adintervall.IntervalTest" name="get_bounds_test" time="0.0" />
<testcase classname="adintervall.IntervalTest" name="testIntersection" time="0.0" />
<testcase classname="adintervall.IntervalTest" name="testDifference" time="0.0" />
<testcase classname="adintervall.IntervalTest" name="test_lessEqual" time="0.0" />
<testcase classname="adintervall.IntervalTest" name="test_greaterEqual" time="0.0" />
<testcase classname="adintervall.IntervalTest" name="test_pLessEqual" time="0.0" />
- <testcase classname="adintervall.IntervalTest" name="test_pGreater" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="test_pGreater" time="0.016" />
<testcase classname="adintervall.IntervalTest" name="test_pGreaterEqual" time="0.0" />
<testcase classname="adintervall.IntervalTest" name="test_lessEqual_d" time="0.0" />
<testcase classname="adintervall.IntervalTest" name="test_greater_d" time="0.0" />
<testcase classname="adintervall.IntervalTest" name="test_greaterEqual_d" time="0.0" />
<testcase classname="adintervall.IntervalTest" name="test_pLessEqual_d" time="0.0" />
<testcase classname="adintervall.IntervalTest" name="test_pGreater_d" time="0.0" />
<testcase classname="adintervall.IntervalTest" name="test_pGreaterEqual_d" time="0.0" />
- <system-out><![CDATA[#-- Testing Factory --#
+ <testcase classname="adintervall.IntervalTest" name="testFactory" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="testContains" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="testEquals" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="testLength" time="0.062" />
+ <testcase classname="adintervall.IntervalTest" name="testPlus" time="0.343" />
+ <testcase classname="adintervall.IntervalTest" name="testMinus" time="0.125" />
+ <testcase classname="adintervall.IntervalTest" name="testMul" time="0.187" />
+ <testcase classname="adintervall.IntervalTest" name="testDiv" time="0.031" />
+ <testcase classname="adintervall.IntervalTest" name="testnewNai" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="testKomm" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="testUnion" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="test_less" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="test_greater" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="test_pLess" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="test_less_d" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="test_pLess_d" time="0.0" />
+ <testcase classname="adintervall.IntervalTest" name="test_square" time="0.0" />
+ <system-out><![CDATA[#-- Testing Bounds --#
+[ -5.0 , 5.0 ].getLowerBound() => -5.0 == -5.0
+[ -5.0 , 5.0 ].getUpperBound() => 5.0 == 5.0
+
+#-- Testing Intersection --#
+[ 1.0 , 3.0 ].intersection([ 2.0 , 4.0 ]) => [ 2.0 , 3.0 ]
+[ 3.0 , 4.0 ].union([ 1.0 , 2.0 ].intersection( [ 2.0 , 3.0 ] )) => [ 3.0 , 4.0 ].union([ 2.0 , 2.0 ] ) => [ NaN , NaN ]
+[ 3.0 , 4.0 ].intersection([ 1.0 , 2.0 ].intersection([ 2.0 , 3.0 ])) => [ 3.0 , 4.0 ].intersection([ 2.0 , 2.0 ]) => [ NaN , NaN ]
+[ 1.0 , 2.0 ].intersection([ 2.0 , 3.0 ].intersection([ 3.0 , 4.0 ])) => [ 1.0 , 2.0 ].intersection([ 3.0 , 3.0 ]) => [ NaN , NaN ]
+
+#-- Testing Difference --#
+[ 1.0 , 2.0 ].difference([ 3.0 , 3.0 ]) => [ 1.0 , 2.0 ]
+[ 1.0 , 5.0 ].difference([ 3.0 , 5.0 ]) => [ 1.0 , 3.0 ]
+[ -Infinity , Infinity ].difference([ 1.0 , 2.0 ]) => [ NaN , NaN ]
+[ 1.0 , 2.0 ].difference([ -Infinity , Infinity ]) => [ NaN , NaN ]
+
+#-- Testing LessEqual --#
+[ 1.0 , 2.0 ].lessEqual([ NaN , NaN ]) => false
+[ 1.0 , 3.0 ].lessEqual([ 3.0 , 4.0 ]) => true
+
+#-- Testing GreaterEqual --#
+[ 2.0 , 4.0 ].greaterEqual([ 1.0 , 2.0 ]) => true
+[ 1.0 , 2.0 ].greaterEqual([ 3.0 , 4.0 ]) => false
+
+#-- Testing ProbablyLessEqual --#
+[ 2.0 , 4.0 ].pLessEqual([ 1.0 , 2.0 ]) => true
+[ 1.0 , 2.0 ].pLessEqual([ NaN , NaN ]) => false
+[ 1.0 , 2.0 ].pLessEqual([ 3.0 , 4.0 ]) => true
+
+#-- Testing ProbablyGreater --#
+[ 3.0 , 4.0 ].pGreater([ 1.0 , 2.0 ]) => true
+[ 2.0 , 4.0 ].pGreater([ 1.0 , 2.0 ]) => true
+[ 1.0 , 2.0 ].pGreater([ 3.0 , 4.0 ]) => false
+
+#-- Testing ProbablyGreaterEqual --#
+[ 3.0 , 4.0 ].pGreaterEqual([ 1.0 , 2.0 ]) => true
+[ 2.0 , 4.0 ].pGreaterEqual([ 1.0 , 2.0 ]) => true
+[ 1.0 , 2.0 ].pGreaterEqual([ 3.0 , 4.0 ]) => false
+
+#-- Testing LessEqual double --#
+[ 1.0 , 3.0 ].lessEqual(3.0) => true
+[ 1.0 , 3.0 ].lessEqual(1.0) => false
+
+#-- Testing Greater double --#
+[ 1.0 , 3.0 ].greater(0.0) => true
+[ 1.0 , 3.0 ].greater(4.0) => false
+
+#-- Testing GreaterEqual double --#
+[ 1.0 , 3.0 ].greaterEqual(1.0) => true
+[ 1.0 , 3.0 ].greaterEqual(4.0) => false
+
+#-- Testing ProbablyLessEqual double --#
+[ 1.0 , 3.0 ].pLessEqual(2.0) => true
+[ 1.0 , 3.0 ].pLessEqual(0.0) => false
+
+#-- Testing ProbablyGreater double --#
+[ 1.0 , 3.0 ].pGreater(2.0) => true
+[ 1.0 , 3.0 ].pGreater(4.0) => false
+
+#-- Testing ProbablyGreaterEqual double --#
+[ 1.0 , 3.0 ].pGreaterEqual(1.0) => true
+[ 1.0 , 3.0 ].pGreaterEqual(4.0) => false
+
+#-- Testing Factory --#
FactoryInterval.createInterval(NaN) => [ NaN , NaN ]
FactoryInterval.createInterval(1d, 7d) => [ 1.0 , 7.0 ]
FactoryInterval.createInterval(-inf, +inf) => [ -Infinity , Infinity ]
@@ -353,23 +416,43 @@ Interval.zeroInterval.minus([ 1.0 , 5.0 ]) => [ -5.0 , -1.0 ]
[ 1.0 , 5.0 ].div([ -5.0 , -1.0 ]) => [ -5.0 , -0.2 ]
[ NaN , NaN ].div([ NaN , NaN ]) => [ NaN , NaN ]
+#-- Testing NaI != NaI --#
+[ NaN , NaN ].equals([ NaN , NaN ]) => false
+
+#-- Testing Kommutativität --#
+[ 1.0 , 2.0 ].plus(2.0) => [ 3.0 , 4.0 ] == [ 3.0 , 4.0 ] <= [ 1.0 , 2.0 ].plusKom(2.0)
+[ 1.0 , 2.0 ].multi(2.0) => [ 2.0 , 4.0 ] == [ 2.0 , 4.0 ] <= [ 1.0 , 2.0 ].multiKom(2.0)
+
#-- Testing Union --#
[ 1.0 , 2.0 ].union([ 2.0 , 3.0 ]) => [ 1.0 , 3.0 ]
[ 2.0 , 3.0 ].union([ 3.0 , 4.0 ]) => [ 2.0 , 4.0 ]
-#-- Testing Bounds --#
-[ -5.0 , 5.0 ].getLowerBound() => -5.0 == -5.0
-[ -5.0 , 5.0 ].getUpperBound() => 5.0 == 5.0
+#-- Testing Less --#
+[ 1.0 , 2.0 ].less([ 3.0 , 4.0 ]) => true
+[ 1.0 , 3.0 ].less([ 3.0 , 4.0 ]) => false
-#-- Testing Intersection --#
-[ 1.0 , 3.0 ].intersection([ 2.0 , 4.0 ]) => [ 2.0 , 3.0 ]
-[ 3.0 , 4.0 ].union([ 1.0 , 2.0 ].intersection( [ 2.0 , 3.0 ] )) => [ 3.0 , 4.0 ].union([ 2.0 , 2.0 ] ) => [ NaN , NaN ]
-[ 3.0 , 4.0 ].intersection([ 1.0 , 2.0 ].intersection([ 2.0 , 3.0 ])) => [ 3.0 , 4.0 ].intersection([ 2.0 , 2.0 ]) => [ NaN , NaN ]
-[ 1.0 , 2.0 ].intersection([ 2.0 , 3.0 ].intersection([ 3.0 , 4.0 ])) => [ 1.0 , 2.0 ].intersection([ 3.0 , 3.0 ]) => [ NaN , NaN ]
+#-- Testing Greater --#
+[ 3.0 , 4.0 ].greater([ 1.0 , 2.0 ]) => true
+[ 1.0 , 2.0 ].greater([ 2.0 , 4.0 ]) => false
-#-- Testing Difference --#
-[ -Infinity , Infinity ].difference([ 1.0 , 2.0 ]) => [ NaN , NaN ]
-[ 1.0 , 2.0 ].difference([ -Infinity , Infinity ]) => [ NaN , NaN ]
+#-- Testing ProbablyLess --#
+[ 2.0 , 4.0 ].pLess([ 1.0 , 2.0 ]) => false
+[ 1.0 , 2.0 ].pLess([ 2.0 , 4.0 ]) => true
+[ 1.0 , 2.0 ].pLess([ 3.0 , 4.0 ]) => true
+
+#-- Testing Less double --#
+[ 1.0 , 3.0 ].less(4.0) => true
+[ 1.0 , 3.0 ].less(1.0) => false
+
+#-- Testing ProbablyLess double --#
+[ 1.0 , 3.0 ].pLess(3.0) => true
+[ 1.0 , 3.0 ].pLess(0.0) => false
+
+#-- Testing Square --#
+[ 1.0 , 1.0 ].square() => [ 1.0 , 1.0 ]
+[ 2.0 , 3.0 ].square() => [ 4.0 , 9.0 ]
+[ 0.0 , 2.0 ].square() => [ 0.0 , 4.0 ]
+[ 0.0 , 0.0 ].square() => [ 0.0 , 0.0 ]
]]></system-out>
<system-err><![CDATA[]]></system-err>
View
109 Aufgabe 1/test/adintervall/IntervalTest.java
@@ -359,6 +359,7 @@ private double Randomdouble() {
@Test
public void testequalsnew() {
+
Interval i1 = FactoryInterval.createInterval(1.0, 2.0);
Interval i2 = FactoryInterval.createInterval(1.0, 2.0);
Interval i3 = FactoryInterval.createInterval(1.0, 2.0);
@@ -368,17 +369,22 @@ public void testequalsnew() {
assertTrue(i2.equals(i1));
assertTrue(i1.equals(i2) == i2.equals(i1));
assertTrue((i1.equals(i2) && i2.equals(i3)) == i1.equals(i3));
-
-
}
@Test
public void testnewNai() {
+ System.out.println("#-- Testing NaI != NaI --#");
+
assertFalse(nai.equals(nai));
+
+ System.out.println(nai + ".equals(" + nai + ") => " + nai.equals(nai) + "\n");
}
+
@Test
public void testKomm() {
+ System.out.println("#-- Testing Kommutativität --#");
+
//Test der Kommutativität
double a = 1d;
double b = 2d;
@@ -391,6 +397,9 @@ public void testKomm() {
assertTrue(i1.plus(b).equals(i1.plusKom(b)));
assertTrue(i1.multi(b).equals(i1.multiKom(b)));
+
+ System.out.println(i1 + ".plus(" + b + ") => " + i1.plus(b) + " == " + i1.plusKom(b) + " <= " + i1 + ".plusKom(" + b + ")");
+ System.out.println(i1 + ".multi(" + b + ") => " + i1.multi(b) + " == " + i1.multiKom(b) + " <= " + i1 + ".multiKom(" + b + ")\n");
}
@Test
@@ -503,186 +512,277 @@ public void testDifference() {
//difference(A, intersection(B, C)) = union(difference(A, B), difference(A, C))
assertTrue(i1.difference(i2.intersection(i3)).equals(i1.difference(i2).union(i1.difference(i3))));
+ System.out.println(i1 + ".difference(" + i2.intersection(i3) + ") => " + i1.difference(i2.intersection(i3)));
+ System.out.println(Int(1d, 5d) + ".difference(" + Int(3d, 5d) + ") => " + Int(1d, 5d).difference(Int(3d, 5d)));
+
System.out.println(real + ".difference(" + i1 + ") => " + real.difference(i1));
System.out.println(i1 + ".difference(" + real + ") => " + i1.difference(real) + "\n");
}
@Test
public void test_less() {
+ System.out.println("#-- Testing Less --#");
assertFalse(nai.less(i1));
assertFalse(i1.less(nai));
assertTrue(i1.less(i2));
assertFalse(i3.less(i2));
assertFalse(i4.less(i1));
assertFalse(i1.less(i1));
+
+ System.out.println(i1 + ".less(" + i2 + ") => " + i1.less(i2));
+ System.out.println(i3 + ".less(" + i2 + ") => " + i3.less(i2) + "\n");
+
}
@Test
public void test_lessEqual() {
+ System.out.println("#-- Testing LessEqual --#");
assertFalse(nai.lessEqual(i1));
assertFalse(i1.lessEqual(nai));
assertTrue(i3.lessEqual(i2));
assertFalse(i4.lessEqual(i1));
assertFalse(i1.lessEqual(i1));
assertFalse(i5.lessEqual(i6));
+
+ System.out.println(i1 + ".lessEqual(" + nai + ") => " + i1.less(nai));
+ System.out.println(i3 + ".lessEqual(" + i2 + ") => " + i3.lessEqual(i2) + "\n");
+
}
@Test
public void test_greater() {
+ System.out.println("#-- Testing Greater --#");
+
assertFalse(nai.greater(i1));
assertFalse(i1.greater(nai));
assertFalse(i1.greater(i2));
assertTrue(i2.greater(i1));
assertFalse(i1.greater(i6));
assertFalse(i6.greater(i1));
assertFalse(i1.greater(i1));
+
+ System.out.println(i2 + ".greater(" + i1 + ") => " + i2.greater(i1));
+ System.out.println(i1 + ".greater(" + i6 + ") => " + i1.greater(i6) + "\n");
}
@Test
public void test_greaterEqual() {
+ System.out.println("#-- Testing GreaterEqual --#");
+
assertFalse(nai.greaterEqual(i1));
assertFalse(i1.greaterEqual(nai));
assertFalse(i1.greaterEqual(i2));
assertTrue(i2.greaterEqual(i1));
assertFalse(i1.greaterEqual(i6));
assertTrue(i6.greaterEqual(i1));
assertFalse(i1.greaterEqual(i1));
+
+ System.out.println(i6 + ".greaterEqual(" + i1 + ") => " + i6.greaterEqual(i1));
+ System.out.println(i1 + ".greaterEqual(" + i2 + ") => " + i1.greaterEqual(i2) + "\n");
+
}
@Test
public void test_pLess() {
+ System.out.println("#-- Testing ProbablyLess --#");
+
assertFalse(nai.pLess(i1));
assertFalse(i1.pLess(nai));
assertTrue(i1.pLess(i2));
assertFalse(i2.pLess(i1));
assertTrue(i1.pLess(i6));
assertFalse(i6.pLess(i1));
assertTrue(i1.pLess(i1));
+
+ System.out.println(i6 + ".pLess(" + i1 + ") => " + i6.pLess(i1));
+ System.out.println(i1 + ".pLess(" + i6 + ") => " + i1.pLess(i6));
+ System.out.println(i1 + ".pLess(" + i2 + ") => " + i1.pLess(i2) + "\n");
}
@Test
public void test_pLessEqual() {
+ System.out.println("#-- Testing ProbablyLessEqual --#");
+
assertFalse(nai.pLessEqual(i1));
assertFalse(i1.pLessEqual(nai));
assertTrue(i1.pLessEqual(i2));
assertFalse(i2.pLessEqual(i1));
assertTrue(i1.pLessEqual(i6));
assertTrue(i6.pLessEqual(i1));
assertTrue(i1.pLessEqual(i1));
+
+ System.out.println(i6 + ".pLessEqual(" + i1 + ") => " + i6.pLessEqual(i1));
+ System.out.println(i1 + ".pLessEqual(" + nai + ") => " + i1.pLessEqual(nai));
+ System.out.println(i1 + ".pLessEqual(" + i2 + ") => " + i1.pLessEqual(i2) + "\n");
}
@Test
public void test_pGreater() {
+ System.out.println("#-- Testing ProbablyGreater --#");
+
assertFalse(nai.pGreater(i1));
assertFalse(i1.pGreater(nai));
assertFalse(i1.pGreater(i2));
assertTrue(i2.pGreater(i1));
assertFalse(i1.pGreater(i6));
assertTrue(i6.pGreater(i1));
assertTrue(i1.pGreater(i1));
+
+ System.out.println(i2 + ".pGreater(" + i1 + ") => " + i2.pGreater(i1));
+ System.out.println(i6 + ".pGreater(" + i1 + ") => " + i6.pGreater(i1));
+ System.out.println(i1 + ".pGreater(" + i2 + ") => " + i1.pGreater(i2) + "\n");
+
}
@Test
public void test_pGreaterEqual() {
+ System.out.println("#-- Testing ProbablyGreaterEqual --#");
+
assertFalse(nai.pGreaterEqual(i1));
assertFalse(i1.pGreaterEqual(nai));
assertFalse(i1.pGreaterEqual(i2));
assertTrue(i2.pGreaterEqual(i1));
assertTrue(i1.pGreaterEqual(i6));
assertTrue(i6.pGreaterEqual(i1));
assertTrue(i1.pGreaterEqual(i1));
+
+ System.out.println(i2 + ".pGreaterEqual(" + i1 + ") => " + i2.pGreaterEqual(i1));
+ System.out.println(i6 + ".pGreaterEqual(" + i1 + ") => " + i6.pGreaterEqual(i1));
+ System.out.println(i1 + ".pGreaterEqual(" + i2 + ") => " + i1.pGreaterEqual(i2) + "\n");
}
@Test
public void test_less_d() {
+ System.out.println("#-- Testing Less double --#");
+
assertFalse(nai.less(d1));
assertFalse(i3.less(nan));
assertFalse(i3.less(d2));
assertFalse(i3.less(d1));
assertFalse(i3.less(d3));
assertFalse(i3.less(d0));
assertTrue(i3.less(d4));
+
+ System.out.println(i3 + ".less(" + d4 + ") => " + i3.less(d4));
+ System.out.println(i3 + ".less(" + d1 + ") => " + i3.less(d1) + "\n");
}
@Test
public void test_lessEqual_d() {
+ System.out.println("#-- Testing LessEqual double --#");
+
assertFalse(nai.lessEqual(d1));
assertFalse(i3.lessEqual(nan));
assertFalse(i3.lessEqual(d2));
assertFalse(i3.lessEqual(d1));
assertTrue(i3.lessEqual(d3));
assertFalse(i3.lessEqual(d0));
assertTrue(i3.lessEqual(d4));
+
+ System.out.println(i3 + ".lessEqual(" + d3 + ") => " + i3.lessEqual(d3));
+ System.out.println(i3 + ".lessEqual(" + d1 + ") => " + i3.lessEqual(d1) + "\n");
}
@Test
public void test_greater_d() {
+ System.out.println("#-- Testing Greater double --#");
+
assertFalse(nai.greater(d1));
assertFalse(i3.greater(nan));
assertFalse(i3.greater(d2));
assertFalse(i3.greater(d1));
assertFalse(i3.greater(d3));
assertTrue(i3.greater(d0));
assertFalse(i3.greater(d4));
+
+ System.out.println(i3 + ".greater(" + d0 + ") => " + i3.greater(d0));
+ System.out.println(i3 + ".greater(" + d4 + ") => " + i3.greater(d4) + "\n");
}
@Test
public void test_greaterEqual_d() {
+ System.out.println("#-- Testing GreaterEqual double --#");
+
assertFalse(nai.greaterEqual(d1));
assertFalse(i3.greaterEqual(nan));
assertFalse(i3.greaterEqual(d2));
assertTrue(i3.greaterEqual(d1));
assertFalse(i3.greaterEqual(d3));
assertTrue(i3.greaterEqual(d0));
assertFalse(i3.greaterEqual(d4));
+
+ System.out.println(i3 + ".greaterEqual(" + d1 + ") => " + i3.greaterEqual(d1));
+ System.out.println(i3 + ".greaterEqual(" + d4 + ") => " + i3.greaterEqual(d4) + "\n");
}
@Test
public void test_pLess_d() {
+ System.out.println("#-- Testing ProbablyLess double --#");
+
assertFalse(nai.pLess(d1));
assertFalse(i3.pLess(nan));
assertTrue(i3.pLess(d2));
assertFalse(i3.pLess(d1));
assertTrue(i3.pLess(d3));
assertFalse(i3.pLess(d0));
assertTrue(i3.pLess(d4));
+
+ System.out.println(i3 + ".pLess(" + d3 + ") => " + i3.pLess(d3));
+ System.out.println(i3 + ".pLess(" + d0 + ") => " + i3.pLess(d0) + "\n");
}
@Test
public void test_pLessEqual_d() {
+ System.out.println("#-- Testing ProbablyLessEqual double --#");
+
assertFalse(nai.pLessEqual(d1));
assertFalse(i3.pLessEqual(nan));
assertTrue(i3.pLessEqual(d2));
assertTrue(i3.pLessEqual(d1));
assertTrue(i3.pLessEqual(d3));
assertFalse(i3.pLessEqual(d0));
assertTrue(i3.pLessEqual(d4));
+
+ System.out.println(i3 + ".pLessEqual(" + d2 + ") => " + i3.pLessEqual(d2));
+ System.out.println(i3 + ".pLessEqual(" + d0 + ") => " + i3.pLessEqual(d0) + "\n");
}
@Test
public void test_pGreater_d() {
+ System.out.println("#-- Testing ProbablyGreater double --#");
+
assertFalse(nai.pGreater(d1));
assertFalse(i3.pGreater(nan));
assertTrue(i3.pGreater(d2));
assertTrue(i3.pGreater(d1));
assertFalse(i3.pGreater(d3));
assertTrue(i3.pGreater(d0));
assertFalse(i3.pGreater(d4));
+
+ System.out.println(i3 + ".pGreater(" + d2 + ") => " + i3.pGreater(d2));
+ System.out.println(i3 + ".pGreater(" + d4 + ") => " + i3.pGreater(d4) + "\n");
}
@Test
public void test_pGreaterEqual_d() {
+ System.out.println("#-- Testing ProbablyGreaterEqual double --#");
+
assertFalse(nai.pGreaterEqual(d1));
assertFalse(i3.pGreaterEqual(nan));
assertTrue(i3.pGreaterEqual(d2));
assertTrue(i3.pGreaterEqual(d1));
assertTrue(i3.pGreaterEqual(d3));
assertTrue(i3.pGreaterEqual(d0));
assertFalse(i3.pGreaterEqual(d4));
+
+ System.out.println(i3 + ".pGreaterEqual(" + d1 + ") => " + i3.pGreaterEqual(d1));
+ System.out.println(i3 + ".pGreaterEqual(" + d4 + ") => " + i3.pGreaterEqual(d4) + "\n");
}
@Test
public void test_square() {
+ System.out.println("#-- Testing Square --#");
+
assertFalse(nai.square().equals(nai));
assertEquals(zero.square(), zero);
assertEquals(i7.square(), i8);
@@ -691,6 +791,11 @@ public void test_square() {
assertEquals(i11.square(), i8);
assertEquals(i12.square(), i8);
assertEquals(i13.square(), i10);
+
+ System.out.println(one + ".square() => " + one.square());
+ System.out.println(i9 + ".square() => " + i9.square());
+ System.out.println(i7 + ".square() => " + i7.square());
+ System.out.println(zero + ".square() => " + zero.square() + "\n");
}

0 comments on commit b9689de

Please sign in to comment.