/third_party/icu/icu4c/source/test/intltest/ |
D | ucharstrietest.cpp | 828 UnicodeString expectedString=UnicodeString(data[i].s, -1, US_INV).unescape(); in checkFirst() local 829 UChar32 c=expectedString[0]; in checkFirst() 830 UChar32 nextCp=expectedString.length()>1 ? expectedString[1] : 0; in checkFirst() 842 c=expectedString.char32At(0); in checkFirst() 844 nextCp=expectedString.length()>cLength ? expectedString.char32At(cLength) : 0; in checkFirst() 864 UnicodeString expectedString=UnicodeString(data[i].s, -1, US_INV).unescape(); in checkNext() local 865 int32_t stringLength= (i&1) ? -1 : expectedString.length(); in checkNext() 868 result=trie.next(expectedString.getTerminatedBuffer(), stringLength)) || in checkNext() 881 stringLength=expectedString.length(); in checkNext() 895 result=trie.next(expectedString[j]); in checkNext() [all …]
|
D | bytestrietest.cpp | 821 const char *expectedString=data[i].s; in checkNextWithState() local 822 int32_t stringLength= static_cast<int32_t>(strlen(expectedString)); in checkNextWithState() 825 if(!USTRINGTRIE_MATCHES(trie.next(expectedString[j]))) { in checkNextWithState() 848 result=trie.next(expectedString+partialLength, in checkNextWithState() 856 next(expectedString+partialLength, in checkNextWithState() 875 const char *expectedString=data[i].s; in checkNextWithState64() local 876 int32_t stringLength= static_cast<int32_t>(strlen(expectedString)); in checkNextWithState64() 879 if(!USTRINGTRIE_MATCHES(trie.next(expectedString[j]))) { in checkNextWithState64() 903 result=trie.next(expectedString+partialLength, in checkNextWithState64() 911 next(expectedString+partialLength, in checkNextWithState64() [all …]
|
D | numfmtdatadriventest.cpp | 380 UnicodeString expectedString = expectedQuantity.toScientificString(); in isParsePass() local 385 expectedString = tuple.output; in isParsePass() 389 if (expectedString != actualString) { in isParsePass() 391 … UnicodeString("Expected: ") + tuple.output + " (i.e., " + expectedString + "), but got: " + in isParsePass() 433 UnicodeString expectedString = expectedQuantity.toScientificString(); in isParseCurrencyPass() local 438 expectedString = tuple.output; in isParseCurrencyPass() 441 if (expectedString != resultStr) { in isParseCurrencyPass() 443 … UnicodeString("Expected: ") + tuple.output + " (i.e., " + expectedString + "), but got: " + in isParseCurrencyPass()
|
D | itformat.h | 45 UnicodeString expectedString, 54 UnicodeString expectedString,
|
D | formattedvaluetest.cpp | 170 UnicodeString expectedString, in checkFormattedValue() argument 181 checkMixedFormattedValue(message, fv, expectedString, converted.getAlias(), length); in checkFormattedValue() 203 UnicodeString expectedString, in checkMixedFormattedValue() argument 210 assertEquals(baseMessage + u"string", expectedString, fv.toString(status)); in checkMixedFormattedValue() 211 assertEquals(baseMessage + u"temp string", expectedString, fv.toTempString(status)); in checkMixedFormattedValue()
|
D | reldatefmttest.cpp | 1422 const char16_t* expectedString = u"tomorrow"; in TestFields() local 1428 expectedString, in TestFields() 1435 const char16_t* expectedString = u"in 3 days"; in TestFields() local 1444 expectedString, in TestFields() 1451 const char16_t* expectedString = u"next Monday"; in TestFields() local 1457 expectedString, in TestFields() 1464 const char16_t* expectedString = u"in 1.5 weeks"; in TestFields() local 1475 expectedString, in TestFields() 1482 const char16_t* expectedString = u"12 hours ago"; in TestFields() local 1490 expectedString, in TestFields() [all …]
|
D | numbertest_range.cpp | 761 const char16_t* expectedString = u"3K – 5K m"; in testFieldPositions() local 771 expectedString); in testFieldPositions() 784 expectedString, in testFieldPositions() 791 const char16_t* expectedString = u"87,654,321–98,765,432"; in testFieldPositions() local 797 expectedString); in testFieldPositions() 811 expectedString, in testFieldPositions() 818 const char16_t* expectedString = u"~-100"; in testFieldPositions() local 824 expectedString); in testFieldPositions() 833 expectedString, in testFieldPositions()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | CharsTrieTest.java | 727 String expectedString=data[i].s; in checkFirst() local 728 int c=expectedString.charAt(0); in checkFirst() 729 int nextCp=expectedString.length()>1 ? expectedString.charAt(1) : 0; in checkFirst() 741 c=expectedString.codePointAt(0); in checkFirst() 743 nextCp=expectedString.length()>cLength ? expectedString.codePointAt(cLength) : 0; in checkFirst() 762 String expectedString=data[i].s; in checkNext() local 763 int stringLength=expectedString.length(); in checkNext() 765 if( !(result=trie.next(expectedString, 0, stringLength)).hasValue() || in checkNext() 793 result=trie.next(expectedString.charAt(j)); in checkNext() 845 String expectedString=data[i].s; in checkNextWithState() local [all …]
|
D | BytesTrieTest.java | 736 byte[] expectedString=data[i].bytes; in checkNextWithState() 740 if(!trie.next(expectedString[j]).matches()) { in checkNextWithState() 761 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState() 766 next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState() 783 byte[] expectedString=data[i].bytes; in checkNextWithState64() 787 if(!trie.next(expectedString[j]).matches()) { in checkNextWithState64() 809 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState64() 814 next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState64() 832 byte[] expectedString=data[i].bytes; in checkNextString() 834 if(!trie.next(expectedString, 0, stringLength/2).matches()) { in checkNextString() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | CharsTrieTest.java | 730 String expectedString=data[i].s; in checkFirst() local 731 int c=expectedString.charAt(0); in checkFirst() 732 int nextCp=expectedString.length()>1 ? expectedString.charAt(1) : 0; in checkFirst() 744 c=expectedString.codePointAt(0); in checkFirst() 746 nextCp=expectedString.length()>cLength ? expectedString.codePointAt(cLength) : 0; in checkFirst() 765 String expectedString=data[i].s; in checkNext() local 766 int stringLength=expectedString.length(); in checkNext() 768 if( !(result=trie.next(expectedString, 0, stringLength)).hasValue() || in checkNext() 796 result=trie.next(expectedString.charAt(j)); in checkNext() 848 String expectedString=data[i].s; in checkNextWithState() local [all …]
|
D | BytesTrieTest.java | 702 byte[] expectedString=data[i].bytes; in checkNextWithState() 706 if(!trie.next(expectedString[j]).matches()) { in checkNextWithState() 727 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState() 732 next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState() 749 byte[] expectedString=data[i].bytes; in checkNextWithState64() 753 if(!trie.next(expectedString[j]).matches()) { in checkNextWithState64() 775 } else if(!(result=trie.next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState64() 780 next(expectedString, partialLength, stringLength)).hasValue() || in checkNextWithState64() 798 byte[] expectedString=data[i].bytes; in checkNextString() 800 if(!trie.next(expectedString, 0, stringLength/2).matches()) { in checkNextString() [all …]
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | cdateintervalformattest.c | 370 …const UChar* expectedString = u"27. September 2010 um 15:00\u2009\u2013\u20092. März 2011 um 18:30… in TestFormatToResult() local 390 expectedString, in TestFormatToResult() 396 const UChar* expectedString = u"27. September 2010, 15:00–22:00 Uhr"; in TestFormatToResult() local 414 expectedString, in TestFormatToResult() 440 …const UChar* expectedString = u"27. September 2010 um 15:00\u2009\u2013\u20092. März 2011 um 18:30… in TestFormatCalendarToResult() local 460 expectedString, in TestFormatCalendarToResult() 466 const UChar* expectedString = u"27. September 2010, 15:00–22:00 Uhr"; in TestFormatCalendarToResult() local 484 expectedString, in TestFormatCalendarToResult() 495 …const UChar* expectedString = u"4. Oktober 1582 um 00:00\u2009\u2013\u200916. Oktober 1582 um 00:0… in TestFormatCalendarToResult() local 515 expectedString, in TestFormatCalendarToResult() [all …]
|
D | uformattedvaluetst.c | 193 const UChar* expectedString, in checkFormattedValueString() argument 205 assertUEquals(message, expectedString, actualString); in checkFormattedValueString() 212 const UChar* expectedString, in checkFormattedValue() argument 218 checkFormattedValueString(message, fv, expectedString, &ec); in checkFormattedValue() 245 const UChar* expectedString, in checkMixedFormattedValue() argument 250 checkFormattedValueString(message, fv, expectedString, &ec); in checkMixedFormattedValue()
|
D | ulistfmttest.c | 146 const UChar* expectedString = u"hello, wonderful, and world"; in TestUListFmtToValue() local 167 expectedString, in TestUListFmtToValue() 173 const UChar* expectedString = u"A, B, C, D, E, F, and G"; in TestUListFmtToValue() local 210 expectedString, in TestUListFmtToValue() 227 const UChar* expectedString = u"A, B, or C"; in TestUListOpenStyled() local 248 expectedString, in TestUListOpenStyled()
|
D | cformtst.h | 46 const UChar* expectedString, 54 const UChar* expectedString,
|
D | cintltst.h | 143 U_CFUNC UBool assertEquals(const char* msg, const char* expectedString, 150 U_CFUNC UBool assertUEquals(const char* msg, const UChar* expectedString,
|
/third_party/node/test/parallel/ |
D | test-module-loading-globalpaths.js | 35 const runTest = (expectedString, env) => { argument 39 assert.strictEqual(child.trim(), expectedString); 76 const expectedString = '$PREFIX/lib/node'; constant 82 fs.writeFileSync(pkgPath, `exports.string = '${expectedString}';`); 85 runTest(expectedString, env);
|
D | test-inspector-async-stack-traces-promise-then.js | 64 const expectedString = JSON.stringify(expected); 68 `Expected ${actualString} to contain ${expectedString}.`);
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberRangeFormatterTest.java | 765 String expectedString = "3K – 5K m"; in testFieldPositions() local 775 expectedString); in testFieldPositions() 784 … FormattedValueTest.checkFormattedValue(message, fmtd, expectedString, expectedFieldPositions); in testFieldPositions() 789 String expectedString = "87,654,321–98,765,432"; in testFieldPositions() local 795 expectedString); in testFieldPositions() 805 … FormattedValueTest.checkFormattedValue(message, fmtd, expectedString, expectedFieldPositions); in testFieldPositions() 810 String expectedString = "~-100"; in testFieldPositions() local 816 expectedString); in testFieldPositions() 821 … FormattedValueTest.checkFormattedValue(message, fmtd, expectedString, expectedFieldPositions); in testFieldPositions()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | FormattedValueTest.java | 149 public static void checkFormattedValue(String message, FormattedValue fv, String expectedString, in checkFormattedValue() argument 151 checkFormattedValue(message, fv, expectedString, expectedFieldPositions, false); in checkFormattedValue() 154 public static void checkFormattedValue(String message, FormattedValue fv, String expectedString, in checkFormattedValue() argument 167 assertEquals(baseMessage + " string", expectedString, fv.toString()); in checkFormattedValue() 168 assertCharSequenceEquals(expectedString, fv); in checkFormattedValue()
|
D | ListFormatterTest.java | 224 String expectedString = "hello, wonderful, and world"; in TestFormattedValue() local 244 expectedString, in TestFormattedValue() 251 String expectedString = "aabbbbbbbccc"; in TestFormattedValue() local 269 expectedString, in TestFormattedValue() 278 String expectedString = "a, b, c, d, e, f, g, h, i"; in TestFormattedValue() local 323 expectedString, in TestFormattedValue()
|
D | RelativeDateTimeFormatterTest.java | 1048 String expectedString = "tomorrow"; in TestFields() local 1051 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1056 String expectedString = "in 3 days"; in TestFields() local 1062 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1067 String expectedString = "next Monday"; in TestFields() local 1070 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1075 String expectedString = "in 1.5 weeks"; in TestFields() local 1083 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1088 String expectedString = "12 hours ago"; in TestFields() local 1093 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
D | RelativeDateTimeFormatterTest.java | 1051 String expectedString = "tomorrow"; in TestFields() local 1054 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1059 String expectedString = "in 3 days"; in TestFields() local 1065 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1070 String expectedString = "next Monday"; in TestFields() local 1073 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1078 String expectedString = "in 1.5 weeks"; in TestFields() local 1086 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1091 String expectedString = "12 hours ago"; in TestFields() local 1096 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/ |
D | NumberRangeFormatterTest.java | 729 String expectedString = "3K – 5K m"; in testFieldPositions() local 739 expectedString); in testFieldPositions() 746 … FormattedValueTest.checkFormattedValue(message, fmtd, expectedString, expectedFieldPositions); in testFieldPositions() 751 String expectedString = "87,654,321–98,765,432"; in testFieldPositions() local 757 expectedString); in testFieldPositions() 765 … FormattedValueTest.checkFormattedValue(message, fmtd, expectedString, expectedFieldPositions); in testFieldPositions()
|
/third_party/icu/icu4c/source/test/iotest/ |
D | stream.cpp | 222 const UChar* expectedString, in testString() argument 245 if (str != UnicodeString(expectedString)) { in testString() 246 …log_err("Did not get expected results from \"%s\", expected \"%s\"\n", testString, expectedString); in testString()
|