Home
last modified time | relevance | path

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

/third_party/icu/icu4c/source/test/intltest/
Dnumfmtst.h371 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
374 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() function
376 expectPad(fmt, UnicodeString(pat, ""), pos, width, pad); in expectPad()
379 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
382 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() function
384 expectPad(fmt, UnicodeString(pat, ""), pos, width, pad); in expectPad()
393 void expectPad(DecimalFormat& fmt, const UnicodeString& pat,
396 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() function
398 expectPad(fmt, pat, pos, 0, (UChar)0); in expectPad()
Dnumfmtst.cpp1759 expectPad(fmt, "*P##.##", DecimalFormat::kPadBeforePrefix, 5, padString); in TestPad()
1761 expectPad(fmt, "*^#", DecimalFormat::kPadBeforePrefix, 1, (UnicodeString)"^"); in TestPad()
1789 expectPad(fmt, "*^#", DecimalFormat::kPadBeforePrefix, 1, hat); in TestPatterns2()
1790 expectPad(fmt, "$*^#", DecimalFormat::kPadAfterPrefix, 2, hat); in TestPatterns2()
1791 expectPad(fmt, "#*^", DecimalFormat::kPadBeforeSuffix, 1, hat); in TestPatterns2()
1792 expectPad(fmt, "#$*^", DecimalFormat::kPadAfterSuffix, 2, hat); in TestPatterns2()
1793 expectPad(fmt, "$*^$#", ILLEGAL); in TestPatterns2()
1794 expectPad(fmt, "#$*^$", ILLEGAL); in TestPatterns2()
1795 expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat::kPadBeforeSuffix, in TestPatterns2()
1797 expectPad(fmt, "''#0*x", DecimalFormat::kPadBeforeSuffix, in TestPatterns2()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DBigNumberFormatTest.java71 private void expectPad(DecimalFormat fmt, String pat, int pos) { in expectPad() method in BigNumberFormatTest
72 expectPad(fmt, pat, pos, 0, (char)0); in expectPad()
75 private void expectPad(DecimalFormat fmt, String pat, in expectPad() method in BigNumberFormatTest
106 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPatterns()
107 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, '^'); in TestPatterns()
108 expectPad(fmt, "#*^", DecimalFormat.PAD_BEFORE_SUFFIX, 1, '^'); in TestPatterns()
109 expectPad(fmt, "#$*^", DecimalFormat.PAD_AFTER_SUFFIX, 2, '^'); in TestPatterns()
110 expectPad(fmt, "$*^$#", ILLEGAL); in TestPatterns()
111 expectPad(fmt, "#$*^$", ILLEGAL); in TestPatterns()
112 expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat.PAD_BEFORE_SUFFIX, in TestPatterns()
[all …]
DNumberFormatTest.java1405 expectPad(fmt, "*P##.##", DecimalFormat.PAD_BEFORE_PREFIX, 5, padString); in TestPad()
1407 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPad()
1457 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, hat); in TestPatterns2()
1458 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, hat); in TestPatterns2()
1459 expectPad(fmt, "#*^", DecimalFormat.PAD_BEFORE_SUFFIX, 1, hat); in TestPatterns2()
1460 expectPad(fmt, "#$*^", DecimalFormat.PAD_AFTER_SUFFIX, 2, hat); in TestPatterns2()
1461 expectPad(fmt, "$*^$#", -1); in TestPatterns2()
1462 expectPad(fmt, "#$*^$", -1); in TestPatterns2()
1463expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat.PAD_BEFORE_SUFFIX, 12, (char) 0x0078 /*x*/); in TestPatterns2()
1464 expectPad(fmt, "''#0*x", DecimalFormat.PAD_BEFORE_SUFFIX, 3, (char) 0x0078 /*x*/); in TestPatterns2()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DBigNumberFormatTest.java68 private void expectPad(DecimalFormat fmt, String pat, int pos) { in expectPad() method in BigNumberFormatTest
69 expectPad(fmt, pat, pos, 0, (char)0); in expectPad()
72 private void expectPad(DecimalFormat fmt, String pat, in expectPad() method in BigNumberFormatTest
103 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPatterns()
104 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, '^'); in TestPatterns()
105 expectPad(fmt, "#*^", DecimalFormat.PAD_BEFORE_SUFFIX, 1, '^'); in TestPatterns()
106 expectPad(fmt, "#$*^", DecimalFormat.PAD_AFTER_SUFFIX, 2, '^'); in TestPatterns()
107 expectPad(fmt, "$*^$#", ILLEGAL); in TestPatterns()
108 expectPad(fmt, "#$*^$", ILLEGAL); in TestPatterns()
109 expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat.PAD_BEFORE_SUFFIX, in TestPatterns()
[all …]
DNumberFormatTest.java1402 expectPad(fmt, "*P##.##", DecimalFormat.PAD_BEFORE_PREFIX, 5, padString); in TestPad()
1404 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPad()
1454 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, hat); in TestPatterns2()
1455 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, hat); in TestPatterns2()
1456 expectPad(fmt, "#*^", DecimalFormat.PAD_BEFORE_SUFFIX, 1, hat); in TestPatterns2()
1457 expectPad(fmt, "#$*^", DecimalFormat.PAD_AFTER_SUFFIX, 2, hat); in TestPatterns2()
1458 expectPad(fmt, "$*^$#", -1); in TestPatterns2()
1459 expectPad(fmt, "#$*^$", -1); in TestPatterns2()
1460expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat.PAD_BEFORE_SUFFIX, 12, (char) 0x0078 /*x*/); in TestPatterns2()
1461 expectPad(fmt, "''#0*x", DecimalFormat.PAD_BEFORE_SUFFIX, 3, (char) 0x0078 /*x*/); in TestPatterns2()
[all …]