Home
last modified time | relevance | path

Searched refs:expectedField (Results 1 – 6 of 6) sorted by relevance

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DFormattedValueTest.java178 Format.Field expectedField = (Format.Field) cas[0]; in checkFormattedValue() local
181 Object expectedValue = cas.length == 4 ? cas[3] : expectedField; in checkFormattedValue()
187 … assertTrue(baseMessage + "Character at " + i + " should have field " + expectedField, in checkFormattedValue()
188 currentAttributes.contains(expectedField)); in checkFormattedValue()
189 assertTrue(baseMessage + "Field " + expectedField + " should be a known attribute", in checkFormattedValue()
190 allAttributes.contains(expectedField)); in checkFormattedValue()
191 int actualBeginIndex = fpi.getRunStart(expectedField); in checkFormattedValue()
192 int actualEndIndex = fpi.getRunLimit(expectedField); in checkFormattedValue()
193 Object actualValue = fpi.getAttribute(expectedField); in checkFormattedValue()
194 … assertEquals(baseMessage + expectedField + " begin @" + i, expectedBeginIndex, actualBeginIndex); in checkFormattedValue()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DFormattedValueTest.java186 Format.Field expectedField = (Format.Field) cas[0]; in checkFormattedValue() local
189 Object expectedValue = cas.length == 4 ? cas[3] : expectedField; in checkFormattedValue()
195 … assertTrue(baseMessage + "A Character at " + i + " should have field " + expectedField, in checkFormattedValue()
196 currentAttributes.contains(expectedField)); in checkFormattedValue()
197 … assertTrue(baseMessage + "A Field " + expectedField + " should be a known attribute", in checkFormattedValue()
198 allAttributes.contains(expectedField)); in checkFormattedValue()
199 int actualBeginIndex = fpi.getRunStart(expectedField); in checkFormattedValue()
200 int actualEndIndex = fpi.getRunLimit(expectedField); in checkFormattedValue()
201 Object actualValue = fpi.getAttribute(expectedField); in checkFormattedValue()
202 …assertEquals(baseMessage + expectedField + " A begin @" + i, expectedBeginIndex, actualBeginIndex); in checkFormattedValue()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dformattedvaluetest.cpp226 int32_t expectedField = expectedFieldPositions[i].field; in checkMixedFormattedValue() local
232 expectedField, cfpos.getField()); in checkMixedFormattedValue()
257 int32_t expectedField = expectedFieldPositions[i].field; in checkMixedFormattedValue() local
263 expectedField, cfpos.getField()); in checkMixedFormattedValue()
293 int32_t expectedField = expectedFieldPositions[i].field; in checkMixedFormattedValue() local
299 expectedField, cfpos.getField()); in checkMixedFormattedValue()
Ddtifmtts.cpp2177 std::vector<int32_t> expectedField; in testTicket21222GregorianEraDiff() local
2232 std::vector<int32_t> expectedField; in testTicket21222ROCEraDiff() local
2270 expectedField, status); in testTicket21222ROCEraDiff()
2276 verifyCategoryAndField(formatted, expectedCategory, expectedField, status); in testTicket21222ROCEraDiff()
2282 verifyCategoryAndField(formatted, expectedCategory, expectedField, status); in testTicket21222ROCEraDiff()
2294 std::vector<int32_t> expectedField; in testTicket21222JapaneseEraDiff() local
2333 expectedField, status); in testTicket21222JapaneseEraDiff()
2339 verifyCategoryAndField(formatted, expectedCategory, expectedField, status); in testTicket21222JapaneseEraDiff()
2345 verifyCategoryAndField(formatted, expectedCategory, expectedField, status); in testTicket21222JapaneseEraDiff()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DNumberFormatterApiTest.java2635 NumberFormat.Field expectedField = (NumberFormat.Field) cas[0]; in fieldPositionLogic() local
2641 expectedField, in fieldPositionLogic()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java4544 NumberFormat.Field expectedField = (NumberFormat.Field) cas[0]; in fieldPositionLogic() local
4550 expectedField, in fieldPositionLogic()