mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-329 Update tests after adding UParseError struct to APIs.
X-SVN-Rev: 5476
This commit is contained in:
parent
38d984850e
commit
0e194efd89
2 changed files with 6 additions and 3 deletions
|
@ -152,6 +152,9 @@ public:
|
|||
UnicodeString& foo,
|
||||
FieldPosition&) const
|
||||
{ return foo.remove(); }
|
||||
|
||||
virtual void applyPattern(const UnicodeString&, UParseError& parseError, UErrorCode& status){
|
||||
}
|
||||
};
|
||||
|
||||
#endif // _NUMBERFORMATREGRESSIONTEST_
|
||||
|
|
|
@ -98,7 +98,7 @@ void TransliteratorTest::TestInstantiation() {
|
|||
Transliterator::getDisplayName(id, name);
|
||||
if (t == 0) {
|
||||
errln(UnicodeString("FAIL: Couldn't create ") + id +
|
||||
", parse error " + parseError.code +
|
||||
/*", parse error " + parseError.code +*/
|
||||
", line " + parseError.line +
|
||||
", offset " + parseError.offset +
|
||||
", context " + prettify(parseError.preContext, TRUE));
|
||||
|
@ -121,7 +121,7 @@ void TransliteratorTest::TestInstantiation() {
|
|||
if (u == 0) {
|
||||
errln(UnicodeString("FAIL: ") + id +
|
||||
".toRules() => bad rules" +
|
||||
", parse error " + parseError.code +
|
||||
/*", parse error " + parseError.code +*/
|
||||
", line " + parseError.line +
|
||||
", offset " + parseError.offset +
|
||||
", context " + prettify(parseError.preContext, TRUE) +
|
||||
|
@ -686,7 +686,7 @@ void TransliteratorTest::TestJ329(void) {
|
|||
UnicodeString desc(DATA[i].rule);
|
||||
desc.append(gotError ? " -> error" : " -> no error");
|
||||
if (gotError) {
|
||||
desc = desc + ", ParseError code=" + parseError.code +
|
||||
desc = desc + ", ParseError code=" + u_errorName(status) +
|
||||
" line=" + parseError.line +
|
||||
" offset=" + parseError.offset +
|
||||
" context=" + parseError.preContext;
|
||||
|
|
Loading…
Add table
Reference in a new issue