harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r517161 - in /harmony/enhanced/drlvm/trunk/src/test/regression/H2773: ./ InfinityTest.java run.test.xml
Date Mon, 12 Mar 2007 10:13:00 GMT
Author: varlax
Date: Mon Mar 12 03:12:56 2007
New Revision: 517161

URL: http://svn.apache.org/viewvc?view=rev&rev=517161
Log:
Added regression test for HARMONY-2773

Added:
    harmony/enhanced/drlvm/trunk/src/test/regression/H2773/
    harmony/enhanced/drlvm/trunk/src/test/regression/H2773/InfinityTest.java
    harmony/enhanced/drlvm/trunk/src/test/regression/H2773/run.test.xml

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2773/InfinityTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H2773/InfinityTest.java?view=auto&rev=517161
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H2773/InfinityTest.java (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H2773/InfinityTest.java Mon Mar 12 03:12:56
2007
@@ -0,0 +1,20 @@
+package org.apache.harmony.drlvm.tests.regression.H2773;
+
+import junit.framework.TestCase;
+
+public class InfinityTest extends TestCase {
+	public void test1() throws Exception {
+		double a = -1.0d;
+		double b = 0.0d;
+		double c = a / b;
+		assertEquals(Double.NEGATIVE_INFINITY, c);
+	}
+
+	public void test2() throws Exception {
+		double a2 = 1.0d;
+		double b2 = -0.0d;
+
+		double c = a2 / b2;
+		assertEquals(Double.NEGATIVE_INFINITY, c);
+	}
+}
\ No newline at end of file

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H2773/run.test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H2773/run.test.xml?view=auto&rev=517161
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H2773/run.test.xml (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H2773/run.test.xml Mon Mar 12 03:12:56
2007
@@ -0,0 +1,9 @@
+<project name="RUN HARMONY-2773 Regression Test">
+    <target name="run-test">
+        <run-junit-test
+            test="org.apache.harmony.drlvm.tests.regression.H2773.InfinityTest"
+            vmarg="-Xem:opt">
+        </run-junit-test>
+    </target>
+</project>
+



Mime
View raw message