/external/icu/icu4c/source/test/cintltst/ |
D | ccolltst.c | 91 UCollationResult expectedResult ) in reportCResult() argument 93 if (expectedResult < -1 || expectedResult > 1) in reportCResult() 99 if (compareResult != expectedResult) in reportCResult() 102 getCompareResult(compareResult), getCompareResult(expectedResult) ); in reportCResult() 105 if (incResult != expectedResult) in reportCResult() 108 getCompareResult(incResult), getCompareResult(expectedResult) ); in reportCResult() 111 if (keyResult != expectedResult) in reportCResult() 114 getCompareResult(keyResult), getCompareResult(expectedResult) ); in reportCResult() 123 if(keyResult != expectedResult || keyResult != compareResult) in reportCResult()
|
D | ccurrtst.c | 109 UCollationResult expectedResult = UCOL_EQUAL; in currTest() local 129 expectedResult = UCOL_LESS; in currTest() 133 expectedResult = UCOL_EQUAL; in currTest() 137 expectedResult = UCOL_GREATER; in currTest() 157 …ult( source, target, sortKey1, sortKey2, compareResult, keyResult, compareResult, expectedResult ); in currTest()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationCurrencyTest.java | 63 int expectedResult = 0; in TestCurrency() local 77 expectedResult = -1; in TestCurrency() 79 expectedResult = 0; in TestCurrency() 81 expectedResult = 1; in TestCurrency() 103 …t( source, target, sourceKey, targetKey, compareResult, keyResult, compareResult, expectedResult ); in TestCurrency() 109 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 110 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 115 boolean ok1 = (compareResult == expectedResult); in reportCResult() 116 boolean ok2 = (keyResult == expectedResult); in reportCResult() 117 boolean ok3 = (incResult == expectedResult); in reportCResult() [all …]
|
D | LotusCollationKoreanTest.java | 68 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 69 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 74 boolean ok1 = (compareResult == expectedResult); in reportCResult() 75 boolean ok2 = (keyResult == expectedResult); in reportCResult() 76 boolean ok3 = (incResult == expectedResult); in reportCResult() 89 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationFinnishTest.java | 90 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 91 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 96 boolean ok1 = (compareResult == expectedResult); in reportCResult() 97 boolean ok2 = (keyResult == expectedResult); in reportCResult() 98 boolean ok3 = (incResult == expectedResult); in reportCResult() 111 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationSpanishTest.java | 102 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 103 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 108 boolean ok1 = (compareResult == expectedResult); in reportCResult() 109 boolean ok2 = (keyResult == expectedResult); in reportCResult() 110 boolean ok3 = (incResult == expectedResult); in reportCResult() 123 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationTurkishTest.java | 109 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 110 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 115 boolean ok1 = (compareResult == expectedResult); in reportCResult() 116 boolean ok2 = (keyResult == expectedResult); in reportCResult() 117 boolean ok3 = (incResult == expectedResult); in reportCResult() 130 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationGermanTest.java | 135 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 136 if (expectedResult < -1 || expectedResult > 1) in reportCResult() 142 boolean ok1 = (compareResult == expectedResult); in reportCResult() 143 boolean ok2 = (keyResult == expectedResult); in reportCResult() 144 boolean ok3 = (incResult == expectedResult); in reportCResult() 157 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationEnglishTest.java | 334 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 335 if (expectedResult < -1 || expectedResult > 1) in reportCResult() 341 boolean ok1 = (compareResult == expectedResult); in reportCResult() 342 boolean ok2 = (keyResult == expectedResult); in reportCResult() 343 boolean ok3 = (incResult == expectedResult); in reportCResult() 356 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationFrenchTest.java | 200 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 201 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 206 boolean ok1 = (compareResult == expectedResult); in reportCResult() 207 boolean ok2 = (keyResult == expectedResult); in reportCResult() 208 boolean ok3 = (incResult == expectedResult); in reportCResult() 221 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationKanaTest.java | 204 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 205 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 210 boolean ok1 = (compareResult == expectedResult); in reportCResult() 211 boolean ok2 = (keyResult == expectedResult); in reportCResult() 212 boolean ok3 = (incResult == expectedResult); in reportCResult() 225 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationCurrencyTest.java | 67 int expectedResult = 0; in TestCurrency() local 81 expectedResult = -1; in TestCurrency() 83 expectedResult = 0; in TestCurrency() 85 expectedResult = 1; in TestCurrency() 107 …t( source, target, sourceKey, targetKey, compareResult, keyResult, compareResult, expectedResult ); in TestCurrency() 113 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 114 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 119 boolean ok1 = (compareResult == expectedResult); in reportCResult() 120 boolean ok2 = (keyResult == expectedResult); in reportCResult() 121 boolean ok3 = (incResult == expectedResult); in reportCResult() [all …]
|
D | CollationSpanishTest.java | 106 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 107 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 112 boolean ok1 = (compareResult == expectedResult); in reportCResult() 113 boolean ok2 = (keyResult == expectedResult); in reportCResult() 114 boolean ok3 = (incResult == expectedResult); in reportCResult() 127 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | LotusCollationKoreanTest.java | 72 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 73 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 78 boolean ok1 = (compareResult == expectedResult); in reportCResult() 79 boolean ok2 = (keyResult == expectedResult); in reportCResult() 80 boolean ok3 = (incResult == expectedResult); in reportCResult() 93 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationFinnishTest.java | 94 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 95 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 100 boolean ok1 = (compareResult == expectedResult); in reportCResult() 101 boolean ok2 = (keyResult == expectedResult); in reportCResult() 102 boolean ok3 = (incResult == expectedResult); in reportCResult() 115 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationTurkishTest.java | 113 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 114 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 119 boolean ok1 = (compareResult == expectedResult); in reportCResult() 120 boolean ok2 = (keyResult == expectedResult); in reportCResult() 121 boolean ok3 = (incResult == expectedResult); in reportCResult() 134 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationGermanTest.java | 139 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 140 if (expectedResult < -1 || expectedResult > 1) in reportCResult() 146 boolean ok1 = (compareResult == expectedResult); in reportCResult() 147 boolean ok2 = (keyResult == expectedResult); in reportCResult() 148 boolean ok3 = (incResult == expectedResult); in reportCResult() 161 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationFrenchTest.java | 204 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 205 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 210 boolean ok1 = (compareResult == expectedResult); in reportCResult() 211 boolean ok2 = (keyResult == expectedResult); in reportCResult() 212 boolean ok3 = (incResult == expectedResult); in reportCResult() 225 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationEnglishTest.java | 338 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 339 if (expectedResult < -1 || expectedResult > 1) in reportCResult() 345 boolean ok1 = (compareResult == expectedResult); in reportCResult() 346 boolean ok2 = (keyResult == expectedResult); in reportCResult() 347 boolean ok3 = (incResult == expectedResult); in reportCResult() 360 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
D | CompoundTransliteratorTest.java | 139 String expectedResult=s; in TestTransliterate() local 143 …ceableString, index(0,0,0,0)", s + "->" + rsource2, result.equals(expectedResult), expectedResult); in TestTransliterate() local 150 … + ":String, index2(1,2,2,3)", s + "->" + rsource3, result.equals(expectedResult), expectedResult); in TestTransliterate() local 214 private void expect(Transliterator t, String source, String expectedResult) { in expect() argument 216 expectAux(t.getID() + ":String", source, result, expectedResult); in expect() local 221 expectAux(t.getID() + ":Replaceable", source, result, expectedResult); in expect() local 251 result.equals(expectedResult), in expect() 252 expectedResult); in expect() local 256 String result, String expectedResult) { in expectAux() argument 258 result.equals(expectedResult), in expectAux() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
D | CompoundTransliteratorTest.java | 143 String expectedResult=s; in TestTransliterate() local 147 …ceableString, index(0,0,0,0)", s + "->" + rsource2, result.equals(expectedResult), expectedResult); in TestTransliterate() local 154 … + ":String, index2(1,2,2,3)", s + "->" + rsource3, result.equals(expectedResult), expectedResult); in TestTransliterate() local 218 private void expect(Transliterator t, String source, String expectedResult) { in expect() argument 220 expectAux(t.getID() + ":String", source, result, expectedResult); in expect() local 225 expectAux(t.getID() + ":Replaceable", source, result, expectedResult); in expect() local 255 result.equals(expectedResult), in expect() 256 expectedResult); in expect() local 260 String result, String expectedResult) { in expectAux() argument 262 result.equals(expectedResult), in expectAux() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | strcase.cpp | 68 UnicodeString expectedResult; in TestCaseConversion() local 76 expectedResult = UnicodeString("i\\u0307stanbul, not constantinople!", "").unescape(); in TestCaseConversion() 77 if (test4 != expectedResult) in TestCaseConversion() 78 errln("1. toLower failed: expected \"" + expectedResult + "\", got \"" + test4 + "\"."); in TestCaseConversion() 82 expectedResult = lowercaseTurkish; in TestCaseConversion() 83 if (test4 != expectedResult) in TestCaseConversion() 84 errln("2. toLower failed: expected \"" + expectedResult + "\", got \"" + test4 + "\"."); in TestCaseConversion() 92 expectedResult = "TOPKAPI PALACE, ISTANBUL"; in TestCaseConversion() 93 if (test4 != expectedResult) in TestCaseConversion() 94 errln("toUpper failed: expected \"" + expectedResult + "\", got \"" + test4 + "\"."); in TestCaseConversion() [all …]
|
D | transtst.h | 376 const UnicodeString& expectedResult); 380 const UnicodeString& expectedResult, 386 const UnicodeString& expectedResult, 391 const UnicodeString& expectedResult, 396 const UnicodeString& expectedResult, 402 const UnicodeString& expectedResult); 406 const UnicodeString& expectedResult);
|
D | currcoll.cpp | 83 Collator::EComparisonResult expectedResult = Collator::EQUAL; in currencyTest() local 103 expectedResult = Collator::LESS; in currencyTest() 107 expectedResult = Collator::EQUAL; in currencyTest() 111 expectedResult = Collator::GREATER; in currencyTest() 137 …t( source, target, sourceKey, targetKey, compareResult, keyResult, compareResult, expectedResult ); in currencyTest()
|
/external/icu/icu4c/source/test/iotest/ |
D | iotest.cpp | 208 UChar expectedResult[512]; in DataDrivenPrintf() local 245 … tempStr.extract(expectedResult, sizeof(expectedResult)/sizeof(expectedResult[0]), errorCode); in DataDrivenPrintf() 296 if (u_strcmp(uBuffer, expectedResult) != 0) { in DataDrivenPrintf() 299 u_austrncpy(cExpected, expectedResult, sizeof(cExpected)); in DataDrivenPrintf() 325 if (u_strcmp(uBuffer, expectedResult) != 0) { in DataDrivenPrintf() 328 u_austrncpy(cExpected, expectedResult, sizeof(cExpected)); in DataDrivenPrintf() 373 UChar expectedResult[512]; in DataDrivenScanf() local 410 … tempStr.extract(expectedResult, sizeof(expectedResult)/sizeof(expectedResult[0]), errorCode); in DataDrivenScanf() 423 expectedDbl = atof(u_austrcpy(cBuffer, expectedResult)); in DataDrivenScanf() 432 expectedFlt = (float)atof(u_austrcpy(cBuffer, expectedResult)); in DataDrivenScanf() [all …]
|