mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-10551 Fix default ignorable test result checking
X-SVN-Rev: 36508
This commit is contained in:
parent
5ede5c1dc6
commit
cd0b3fa10b
1 changed files with 2 additions and 2 deletions
|
@ -5754,7 +5754,7 @@ public class TestCharset extends TestFmwk {
|
|||
for (int i = 0; i < size; i++) {
|
||||
encoder.reset();
|
||||
try {
|
||||
if(encoder.encode(CharBuffer.wrap(Character.toChars(set_ignorable.charAt(i)))).position() > 0) {
|
||||
if(encoder.encode(CharBuffer.wrap(Character.toChars(set_ignorable.charAt(i)))).limit() > 0) {
|
||||
errln("Callback should have ignore default ignorable: 0x" + Integer.toHexString(set_ignorable.charAt(i)));
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
|
@ -5767,7 +5767,7 @@ public class TestCharset extends TestFmwk {
|
|||
for (int i = 0; i < size; i++) {
|
||||
encoder.reset();
|
||||
try {
|
||||
if(encoder.encode(CharBuffer.wrap(Character.toChars(set_not_ignorable.charAt(i)))).position() > 0) {
|
||||
if(encoder.encode(CharBuffer.wrap(Character.toChars(set_not_ignorable.charAt(i)))).limit() == 0) {
|
||||
errln("Callback should not have ignored: 0x" + Integer.toHexString(set_not_ignorable.charAt(i)));
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
|
|
Loading…
Add table
Reference in a new issue