mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-410 add error test for unescape()
X-SVN-Rev: 2302
This commit is contained in:
parent
648b1d0536
commit
a92446d773
1 changed files with 5 additions and 0 deletions
|
@ -806,4 +806,9 @@ void UnicodeStringTest::TestUnescape(void) {
|
|||
prettify(result) + ", expected " +
|
||||
prettify(OUT));
|
||||
}
|
||||
|
||||
// test that an empty string is returned in case of an error
|
||||
if (!UNICODE_STRING("wrong \\u sequence", 17).unescape().empty()) {
|
||||
errln("FAIL: unescaping of a string with an illegal escape sequence did not return an empty string");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue