harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r547786 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/String2Test.java
Date Fri, 15 Jun 2007 21:13:20 GMT
Author: tellison
Date: Fri Jun 15 14:13:19 2007
New Revision: 547786

URL: http://svn.apache.org/viewvc?view=rev&rev=547786
Log:
Apply regression test patch for HARMONY-4135 ([classlib][luni] InputStream handles UTF-16
incorrectly)

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/String2Test.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/String2Test.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/String2Test.java?view=diff&rev=547786&r1=547785&r2=547786
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/String2Test.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/String2Test.java
Fri Jun 15 14:13:19 2007
@@ -466,6 +466,12 @@
         } catch (UnsupportedEncodingException e) {
             //expected
         }
+
+        // Regression for HARMONY-4135
+        bytes = "-".getBytes("UTF-16");
+        expected = new byte[] { -2, -1 };
+        assertEquals(expected[0], bytes[0]);
+        assertEquals(expected[1], bytes[1]);
     }
 
 	/**



Mime
View raw message