ICU-410 add error test for unescape()

X-SVN-Rev: 2302
This commit is contained in:
Markus Scherer 2000-08-16 23:55:57 +00:00
parent 648b1d0536
commit a92446d773

View file

@ -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");
}
}