Lines Matching full:status

24     UErrorCode status = U_ZERO_ERROR;  in testBasic()  local
27 PatternParser::parseToPatternInfo(u"a0b", patternInfo, status); in testBasic()
28 assertSuccess("Spot 1", status); in testBasic()
31 DecimalFormatSymbols symbols(Locale::getEnglish(), status); in testBasic()
32 CurrencySymbols currencySymbols({u"USD", status}, "en", status); in testBasic()
33 if (!assertSuccess("Spot 2", status, true)) { in testBasic()
39 assertEquals("Pattern a0b", u"a", getPrefix(mod, status)); in testBasic()
40 assertEquals("Pattern a0b", u"b", getSuffix(mod, status)); in testBasic()
42 assertEquals("Pattern a0b", u"+a", getPrefix(mod, status)); in testBasic()
43 assertEquals("Pattern a0b", u"b", getSuffix(mod, status)); in testBasic()
45 assertEquals("Pattern a0b", u"+a", getPrefix(mod, status)); in testBasic()
46 assertEquals("Pattern a0b", u"b", getSuffix(mod, status)); in testBasic()
48 assertEquals("Pattern a0b", u"a", getPrefix(mod, status)); in testBasic()
49 assertEquals("Pattern a0b", u"b", getSuffix(mod, status)); in testBasic()
51 assertEquals("Pattern a0b", u"-a", getPrefix(mod, status)); in testBasic()
52 assertEquals("Pattern a0b", u"b", getSuffix(mod, status)); in testBasic()
54 assertEquals("Pattern a0b", u"a", getPrefix(mod, status)); in testBasic()
55 assertEquals("Pattern a0b", u"b", getSuffix(mod, status)); in testBasic()
56 assertSuccess("Spot 3", status); in testBasic()
59 PatternParser::parseToPatternInfo(u"a0b;c-0d", patternInfo2, status); in testBasic()
60 assertSuccess("Spot 4", status); in testBasic()
64 assertEquals("Pattern a0b;c-0d", u"a", getPrefix(mod, status)); in testBasic()
65 assertEquals("Pattern a0b;c-0d", u"b", getSuffix(mod, status)); in testBasic()
67 assertEquals("Pattern a0b;c-0d", u"c+", getPrefix(mod, status)); in testBasic()
68 assertEquals("Pattern a0b;c-0d", u"d", getSuffix(mod, status)); in testBasic()
70 assertEquals("Pattern a0b;c-0d", u"c+", getPrefix(mod, status)); in testBasic()
71 assertEquals("Pattern a0b;c-0d", u"d", getSuffix(mod, status)); in testBasic()
73 assertEquals("Pattern a0b;c-0d", u"a", getPrefix(mod, status)); in testBasic()
74 assertEquals("Pattern a0b;c-0d", u"b", getSuffix(mod, status)); in testBasic()
76 assertEquals("Pattern a0b;c-0d", u"c-", getPrefix(mod, status)); in testBasic()
77 assertEquals("Pattern a0b;c-0d", u"d", getSuffix(mod, status)); in testBasic()
80 assertEquals("Pattern a0b;c-0d", u"c-", getPrefix(mod, status)); in testBasic()
81 assertEquals("Pattern a0b;c-0d", u"d", getSuffix(mod, status)); in testBasic()
82 assertSuccess("Spot 5", status); in testBasic()
86 UErrorCode status = U_ZERO_ERROR; in testPatternWithNoPlaceholder() local
89 PatternParser::parseToPatternInfo(u"abc", patternInfo, status); in testPatternWithNoPlaceholder()
90 assertSuccess("Spot 1", status); in testPatternWithNoPlaceholder()
93 DecimalFormatSymbols symbols(Locale::getEnglish(), status); in testPatternWithNoPlaceholder()
94 CurrencySymbols currencySymbols({u"USD", status}, "en", status); in testPatternWithNoPlaceholder()
95 if (!assertSuccess("Spot 2", status, true)) { in testPatternWithNoPlaceholder()
103 nsb.append(u"x123y", UNUM_FIELD_COUNT, status); in testPatternWithNoPlaceholder()
104 assertSuccess("Spot 3", status); in testPatternWithNoPlaceholder()
105 mod.apply(nsb, 1, 4, status); in testPatternWithNoPlaceholder()
106 assertSuccess("Spot 4", status); in testPatternWithNoPlaceholder()
111 nsb.append(u"x123y", UNUM_FIELD_COUNT, status); in testPatternWithNoPlaceholder()
112 assertSuccess("Spot 5", status); in testPatternWithNoPlaceholder()
114 LocalPointer<ImmutablePatternModifier> imod(mod.createImmutable(status), status); in testPatternWithNoPlaceholder()
115 if (U_FAILURE(status)) { in testPatternWithNoPlaceholder()
118 assertSuccess("Spot 6", status); in testPatternWithNoPlaceholder()
123 micros.modMiddle->apply(nsb, 1, 4, status); in testPatternWithNoPlaceholder()
124 assertSuccess("Spot 7", status); in testPatternWithNoPlaceholder()
129 UErrorCode status = U_ZERO_ERROR; in testMutableEqualsImmutable() local
132 PatternParser::parseToPatternInfo("a0b;c-0d", patternInfo, status); in testMutableEqualsImmutable()
133 assertSuccess("Spot 1", status); in testMutableEqualsImmutable()
136 DecimalFormatSymbols symbols(Locale::getEnglish(), status); in testMutableEqualsImmutable()
137 CurrencySymbols currencySymbols({u"USD", status}, "en", status); in testMutableEqualsImmutable()
138 assertSuccess("Spot 2", status); in testMutableEqualsImmutable()
139 if (U_FAILURE(status)) { return; } in testMutableEqualsImmutable()
147 mod.processQuantity(fq, micros1, status); in testMutableEqualsImmutable()
148 micros1.modMiddle->apply(nsb1, 0, 0, status); in testMutableEqualsImmutable()
149 assertSuccess("Spot 3", status); in testMutableEqualsImmutable()
153 LocalPointer<ImmutablePatternModifier> immutable(mod.createImmutable(status)); in testMutableEqualsImmutable()
155 micros2.modMiddle->apply(nsb2, 0, 0, status); in testMutableEqualsImmutable()
156 assertSuccess("Spot 4", status); in testMutableEqualsImmutable()
162 mod.processQuantity(fq, micros3, status); in testMutableEqualsImmutable()
163 micros3.modMiddle->apply(nsb3, 0, 0, status); in testMutableEqualsImmutable()
164 assertSuccess("Spot 5", status); in testMutableEqualsImmutable()
170 UnicodeString PatternModifierTest::getPrefix(const MutablePatternModifier &mod, UErrorCode &status)… in getPrefix() argument
172 mod.apply(nsb, 0, 0, status); in getPrefix()
177 UnicodeString PatternModifierTest::getSuffix(const MutablePatternModifier &mod, UErrorCode &status)… in getSuffix() argument
179 mod.apply(nsb, 0, 0, status); in getSuffix()