ICU-329 Update tests after adding UParseError struct to APIs.
X-SVN-Rev: 5476
This commit is contained in:
parent
38d984850e
commit
0e194efd89
@ -152,6 +152,9 @@ public:
|
|||||||
UnicodeString& foo,
|
UnicodeString& foo,
|
||||||
FieldPosition&) const
|
FieldPosition&) const
|
||||||
{ return foo.remove(); }
|
{ return foo.remove(); }
|
||||||
|
|
||||||
|
virtual void applyPattern(const UnicodeString&, UParseError& parseError, UErrorCode& status){
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _NUMBERFORMATREGRESSIONTEST_
|
#endif // _NUMBERFORMATREGRESSIONTEST_
|
||||||
|
@ -98,7 +98,7 @@ void TransliteratorTest::TestInstantiation() {
|
|||||||
Transliterator::getDisplayName(id, name);
|
Transliterator::getDisplayName(id, name);
|
||||||
if (t == 0) {
|
if (t == 0) {
|
||||||
errln(UnicodeString("FAIL: Couldn't create ") + id +
|
errln(UnicodeString("FAIL: Couldn't create ") + id +
|
||||||
", parse error " + parseError.code +
|
/*", parse error " + parseError.code +*/
|
||||||
", line " + parseError.line +
|
", line " + parseError.line +
|
||||||
", offset " + parseError.offset +
|
", offset " + parseError.offset +
|
||||||
", context " + prettify(parseError.preContext, TRUE));
|
", context " + prettify(parseError.preContext, TRUE));
|
||||||
@ -121,7 +121,7 @@ void TransliteratorTest::TestInstantiation() {
|
|||||||
if (u == 0) {
|
if (u == 0) {
|
||||||
errln(UnicodeString("FAIL: ") + id +
|
errln(UnicodeString("FAIL: ") + id +
|
||||||
".toRules() => bad rules" +
|
".toRules() => bad rules" +
|
||||||
", parse error " + parseError.code +
|
/*", parse error " + parseError.code +*/
|
||||||
", line " + parseError.line +
|
", line " + parseError.line +
|
||||||
", offset " + parseError.offset +
|
", offset " + parseError.offset +
|
||||||
", context " + prettify(parseError.preContext, TRUE) +
|
", context " + prettify(parseError.preContext, TRUE) +
|
||||||
@ -686,7 +686,7 @@ void TransliteratorTest::TestJ329(void) {
|
|||||||
UnicodeString desc(DATA[i].rule);
|
UnicodeString desc(DATA[i].rule);
|
||||||
desc.append(gotError ? " -> error" : " -> no error");
|
desc.append(gotError ? " -> error" : " -> no error");
|
||||||
if (gotError) {
|
if (gotError) {
|
||||||
desc = desc + ", ParseError code=" + parseError.code +
|
desc = desc + ", ParseError code=" + u_errorName(status) +
|
||||||
" line=" + parseError.line +
|
" line=" + parseError.line +
|
||||||
" offset=" + parseError.offset +
|
" offset=" + parseError.offset +
|
||||||
" context=" + parseError.preContext;
|
" context=" + parseError.preContext;
|
||||||
|
Loading…
Reference in New Issue
Block a user