ICU-329 Update tests after adding UParseError struct to APIs.

X-SVN-Rev: 5476
This commit is contained in:
Ram Viswanadha 2001-08-16 01:01:22 +00:00
parent 38d984850e
commit 0e194efd89
2 changed files with 6 additions and 3 deletions

View File

@ -152,6 +152,9 @@ public:
UnicodeString& foo,
FieldPosition&) const
{ return foo.remove(); }
virtual void applyPattern(const UnicodeString&, UParseError& parseError, UErrorCode& status){
}
};
#endif // _NUMBERFORMATREGRESSIONTEST_

View File

@ -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;