harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r518491 - in /harmony/enhanced/drlvm/trunk/src/test/regression/H3380: ./ LongToBitsTest.java run.test.xml
Date Thu, 15 Mar 2007 05:54:04 GMT
Author: varlax
Date: Wed Mar 14 22:54:03 2007
New Revision: 518491

URL: http://svn.apache.org/viewvc?view=rev&rev=518491
Log:
Regression test to H-3380 added.

Added:
    harmony/enhanced/drlvm/trunk/src/test/regression/H3380/
    harmony/enhanced/drlvm/trunk/src/test/regression/H3380/LongToBitsTest.java
    harmony/enhanced/drlvm/trunk/src/test/regression/H3380/run.test.xml

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H3380/LongToBitsTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H3380/LongToBitsTest.java?view=auto&rev=518491
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H3380/LongToBitsTest.java (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H3380/LongToBitsTest.java Wed Mar 14
22:54:03 2007
@@ -0,0 +1,19 @@
+package org.apache.harmony.drlvm.tests.regression.h3380;
+
+import java.util.Formatter;
+import junit.framework.TestCase;
+
+public class LongToBitsTest extends TestCase {
+
+    public void test() {
+        long a = 0x00100000000L; 
+        long b = 0x01010101010L; 
+        assertEquals("1110101010", format(a,b)); 
+    } 
+
+    static String format( long a, long b ) { 
+        StringBuilder sb = new StringBuilder();
+        new Formatter(sb).format("%1$x", (a|b) ); 
+        return sb.toString();
+    } 
+}

Added: harmony/enhanced/drlvm/trunk/src/test/regression/H3380/run.test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/src/test/regression/H3380/run.test.xml?view=auto&rev=518491
==============================================================================
--- harmony/enhanced/drlvm/trunk/src/test/regression/H3380/run.test.xml (added)
+++ harmony/enhanced/drlvm/trunk/src/test/regression/H3380/run.test.xml Wed Mar 14 22:54:03
2007
@@ -0,0 +1,8 @@
+<project name="RUN HARMONY-3380 Regression Test">
+  <target name="run-test">
+    <run-junit-test 
+        test="org.apache.harmony.drlvm.tests.regression.h3380.LongToBitsTest"
+        vmarg="-Xem:jet">
+    </run-junit-test>
+  </target>
+</project>



Mime
View raw message