diff options
author | Urs Grob <ursg@google.com> | 2009-09-09 10:55:56 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-09-09 10:55:56 -0700 |
commit | 0012963442efc9b51037a09b21d421e0311cecf5 (patch) | |
tree | 43899cb1714bb276aa6d272ae417b8eb6a89ff08 /luni/src | |
parent | 8ecb2c53605aa38be474ec36f34fba771b7c92d6 (diff) | |
parent | 042f15154c56ffc52c0eb1d191d3aff98d505921 (diff) | |
download | libcore-0012963442efc9b51037a09b21d421e0311cecf5.zip libcore-0012963442efc9b51037a09b21d421e0311cecf5.tar.gz libcore-0012963442efc9b51037a09b21d421e0311cecf5.tar.bz2 |
am ad8efa12: am 7f5e6aa1: Merge change 23896 into eclair
Merge commit 'ad8efa123b7133895b9c198a84a32020869eba18'
* commit 'ad8efa123b7133895b9c198a84a32020869eba18':
InputStreamReader forgets to convert incomplete multibyte characters at the buffer boundary
Diffstat (limited to 'luni/src')
-rw-r--r-- | luni/src/test/java/tests/api/java/io/OutputStreamWriterTest.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/luni/src/test/java/tests/api/java/io/OutputStreamWriterTest.java b/luni/src/test/java/tests/api/java/io/OutputStreamWriterTest.java index b745662..22e1af7 100644 --- a/luni/src/test/java/tests/api/java/io/OutputStreamWriterTest.java +++ b/luni/src/test/java/tests/api/java/io/OutputStreamWriterTest.java @@ -17,7 +17,6 @@ package tests.api.java.io; -import dalvik.annotation.KnownFailure; import dalvik.annotation.TestTargets; import dalvik.annotation.TestLevel; import dalvik.annotation.TestTargetNew; @@ -31,7 +30,6 @@ import java.io.OutputStreamWriter; import java.io.UnsupportedEncodingException; import java.nio.charset.Charset; import java.nio.charset.CharsetEncoder; -import java.util.Arrays; import tests.support.Support_OutputStream; @@ -426,7 +424,6 @@ public class OutputStreamWriterTest extends TestCase { clazz = InputStreamReader.class ) }) - @KnownFailure("Error when reading bytes in UTF-8 expected:<8916> but was:<8907> ") public void test_write$C() throws Exception { int upper; InputStreamReader isr = null; @@ -471,7 +468,7 @@ public class OutputStreamWriterTest extends TestCase { j = 0; } assertEquals("Error when reading bytes in " - + MINIMAL_CHARSETS[i], expected++, largeBuffer[j++]); + + MINIMAL_CHARSETS[i] + " at " + j, expected++, largeBuffer[j++]); } } finally { try { @@ -878,5 +875,4 @@ public class OutputStreamWriterTest extends TestCase { fail("UTF-8 not supported"); } } - } |