harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r773873 - /harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharsetTest.java
Date Tue, 12 May 2009 12:50:51 GMT
Author: odeakin
Date: Tue May 12 12:50:51 2009
New Revision: 773873

URL: http://svn.apache.org/viewvc?rev=773873&view=rev
Log:
Make sure we use the same encoding when comparing Strings.

Modified:
    harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharsetTest.java

Modified: harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharsetTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharsetTest.java?rev=773873&r1=773872&r2=773873&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharsetTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharsetTest.java
Tue May 12 12:50:51 2009
@@ -665,7 +665,7 @@
 		CharBuffer cb = c1.decode(ByteBuffer.wrap("abcd\u5D14efg"
 				.getBytes("iso8859-1")));
 		byte[] replacement = c1.newEncoder().replacement();
-		assertEquals(new String(cb.array()).trim(), "abcd" + new String(replacement)
+		assertEquals(new String(cb.array()).trim(), "abcd" + new String(replacement, "iso8859-1")
 				+ "efg");
 	}
 



Mime
View raw message