mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-10551 Fix the error message print out of code points
X-SVN-Rev: 36509
This commit is contained in:
parent
cd0b3fa10b
commit
cc637f84bd
1 changed files with 4 additions and 4 deletions
|
@ -5755,10 +5755,10 @@ public class TestCharset extends TestFmwk {
|
|||
encoder.reset();
|
||||
try {
|
||||
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)));
|
||||
errln("Callback should have ignore default ignorable: U+" + Integer.toHexString(set_ignorable.charAt(i)));
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
errln("Error received converting 0x" + Integer.toHexString(set_ignorable.charAt(i)));
|
||||
errln("Error received converting +" + Integer.toHexString(set_ignorable.charAt(i)));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5768,10 +5768,10 @@ public class TestCharset extends TestFmwk {
|
|||
encoder.reset();
|
||||
try {
|
||||
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)));
|
||||
errln("Callback should not have ignored: U+" + Integer.toHexString(set_not_ignorable.charAt(i)));
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
errln("Error received converting 0x" + Integer.toHexString(set_not_ignorable.charAt(i)));
|
||||
errln("Error received converting U+" + Integer.toHexString(set_not_ignorable.charAt(i)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue