@@ -88,6 +88,8 @@ public boolean testCase1() throws SAXException, IOException
88
88
89
89
String actual4 = outputCharacters (makeStream ("UTF-8" ), utf16String );
90
90
reporter .check (actual4 , utf16String , "Astral characters should come out unscathed" );
91
+ String actual4b = outputCharacters (makeStream ("UTF-8" ), utf16String , utf16String .length () - 1 );
92
+ reporter .check (actual4b , utf16String , "Astral characters should come out unscathed (in split buffer)" );
91
93
String actual4a = outputAttrValue (makeStream ("UTF-8" ), utf16String );
92
94
reporter .check (actual4a , utf16String , "Astral characters should come out unscathed (as attribute value)" );
93
95
@@ -103,7 +105,7 @@ public boolean testCase1() throws SAXException, IOException
103
105
*/
104
106
public boolean testCase2 () throws SAXException , IOException
105
107
{
106
- reporter .testCaseInit ("Verify setting output properties individually or whole blocks. " );
108
+ reporter .testCaseInit ("Verify handling of ISO-8859-1 encoding in ToStream " );
107
109
108
110
String actual1 = outputCharacters (makeStream ("ISO-8859-1" ), "abc" );
109
111
reporter .check (actual1 , "abc" , "Simple characters should come out unscathed" );
@@ -142,7 +144,7 @@ public boolean testCase2() throws SAXException, IOException
142
144
*/
143
145
public boolean testCase3 () throws SAXException , IOException
144
146
{
145
- reporter .testCaseInit ("Verify setting output properties individually or whole blocks. " );
147
+ reporter .testCaseInit ("Verify handling of ASCII encoding in ToStream " );
146
148
147
149
String actual1 = outputCharacters (makeStream ("ASCII" ), "abc" );
148
150
reporter .check (actual1 , "abc" , "Simple characters should come out unscathed" );
0 commit comments