diff options
Diffstat (limited to 'Build/source/libs/icu-xetex/test/intltest/itrbnf.cpp')
-rw-r--r-- | Build/source/libs/icu-xetex/test/intltest/itrbnf.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Build/source/libs/icu-xetex/test/intltest/itrbnf.cpp b/Build/source/libs/icu-xetex/test/intltest/itrbnf.cpp index 248f4ad3c92..a44c8c7eedd 100644 --- a/Build/source/libs/icu-xetex/test/intltest/itrbnf.cpp +++ b/Build/source/libs/icu-xetex/test/intltest/itrbnf.cpp @@ -180,6 +180,12 @@ IntlTestRBNF::TestAPI() { if(!(ruleCtorResult == *formatter)) { errln("Formatter constructed from the original rules should be semantically equivalent to the original!"); } + + // Jitterbug 4452, for coverage + RuleBasedNumberFormat nf(spelloutRules, (UnicodeString)"", Locale::getUS(), perror, status); + if(!(nf == *formatter)) { + errln("Formatter constructed from the original rules should be semantically equivalent to the original!"); + } } ures_close(en); } @@ -297,6 +303,16 @@ IntlTestRBNF::TestAPI() { logln("Formatted 4 int64_t, expected " + expected + " got " + result); } + //Jitterbug 4452, for coverage + result.remove(); + FieldPosition pos2; + formatter->format((int64_t)4, formatter->getRuleSetName(0), result, pos2, status = U_ZERO_ERROR); + if(result != expected) { + errln("Formatted 4 int64_t, expected " + expected + " got " + result); + } else { + logln("Formatted 4 int64_t, expected " + expected + " got " + result); + } + // clean up logln("Cleaning up"); delete formatter; |