/external/icu/icu4c/source/test/cintltst/ |
D | ccolltst.c | 93 UCollationResult expectedResult ) in reportCResult() argument 95 if (expectedResult < -1 || expectedResult > 1) in reportCResult() 101 if (compareResult != expectedResult) in reportCResult() 104 getCompareResult(compareResult), getCompareResult(expectedResult) ); in reportCResult() 107 if (incResult != expectedResult) in reportCResult() 110 getCompareResult(incResult), getCompareResult(expectedResult) ); in reportCResult() 113 if (keyResult != expectedResult) in reportCResult() 116 getCompareResult(keyResult), getCompareResult(expectedResult) ); in reportCResult() 125 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/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationCurrencyTest.java | 65 int expectedResult = 0; in TestCurrency() local 79 expectedResult = -1; in TestCurrency() 81 expectedResult = 0; in TestCurrency() 83 expectedResult = 1; in TestCurrency() 105 …t( source, target, sourceKey, targetKey, compareResult, keyResult, compareResult, expectedResult ); in TestCurrency() 111 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 112 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 117 boolean ok1 = (compareResult == expectedResult); in reportCResult() 118 boolean ok2 = (keyResult == expectedResult); in reportCResult() 119 boolean ok3 = (incResult == expectedResult); in reportCResult() [all …]
|
D | LotusCollationKoreanTest.java | 74 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 75 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 80 boolean ok1 = (compareResult == expectedResult); in reportCResult() 81 boolean ok2 = (keyResult == expectedResult); in reportCResult() 82 boolean ok3 = (incResult == expectedResult); in reportCResult() 95 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationSpanishTest.java | 108 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 109 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 114 boolean ok1 = (compareResult == expectedResult); in reportCResult() 115 boolean ok2 = (keyResult == expectedResult); in reportCResult() 116 boolean ok3 = (incResult == expectedResult); in reportCResult() 129 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationFinnishTest.java | 96 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 97 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 102 boolean ok1 = (compareResult == expectedResult); in reportCResult() 103 boolean ok2 = (keyResult == expectedResult); in reportCResult() 104 boolean ok3 = (incResult == expectedResult); in reportCResult() 117 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationTurkishTest.java | 115 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 116 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 121 boolean ok1 = (compareResult == expectedResult); in reportCResult() 122 boolean ok2 = (keyResult == expectedResult); in reportCResult() 123 boolean ok3 = (incResult == expectedResult); in reportCResult() 136 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationGermanTest.java | 142 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 143 if (expectedResult < -1 || expectedResult > 1) in reportCResult() 149 boolean ok1 = (compareResult == expectedResult); in reportCResult() 150 boolean ok2 = (keyResult == expectedResult); in reportCResult() 151 boolean ok3 = (incResult == expectedResult); in reportCResult() 164 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationFrenchTest.java | 207 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 208 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 213 boolean ok1 = (compareResult == expectedResult); in reportCResult() 214 boolean ok2 = (keyResult == expectedResult); in reportCResult() 215 boolean ok3 = (incResult == expectedResult); in reportCResult() 228 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationEnglishTest.java | 341 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 342 if (expectedResult < -1 || expectedResult > 1) in reportCResult() 348 boolean ok1 = (compareResult == expectedResult); in reportCResult() 349 boolean ok2 = (keyResult == expectedResult); in reportCResult() 350 boolean ok3 = (incResult == expectedResult); in reportCResult() 363 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationKanaTest.java | 216 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 217 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 222 boolean ok1 = (compareResult == expectedResult); in reportCResult() 223 boolean ok2 = (keyResult == expectedResult); in reportCResult() 224 boolean ok3 = (incResult == expectedResult); in reportCResult() 237 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationCurrencyTest.java | 64 int expectedResult = 0; in TestCurrency() local 78 expectedResult = -1; in TestCurrency() 80 expectedResult = 0; in TestCurrency() 82 expectedResult = 1; in TestCurrency() 104 …t( source, target, sourceKey, targetKey, compareResult, keyResult, compareResult, expectedResult ); in TestCurrency() 110 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 111 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 116 boolean ok1 = (compareResult == expectedResult); in reportCResult() 117 boolean ok2 = (keyResult == expectedResult); in reportCResult() 118 boolean ok3 = (incResult == expectedResult); in reportCResult() [all …]
|
D | LotusCollationKoreanTest.java | 73 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 74 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 79 boolean ok1 = (compareResult == expectedResult); in reportCResult() 80 boolean ok2 = (keyResult == expectedResult); in reportCResult() 81 boolean ok3 = (incResult == expectedResult); in reportCResult() 94 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationSpanishTest.java | 107 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 108 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 113 boolean ok1 = (compareResult == expectedResult); in reportCResult() 114 boolean ok2 = (keyResult == expectedResult); in reportCResult() 115 boolean ok3 = (incResult == expectedResult); in reportCResult() 128 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationTurkishTest.java | 114 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 115 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 120 boolean ok1 = (compareResult == expectedResult); in reportCResult() 121 boolean ok2 = (keyResult == expectedResult); in reportCResult() 122 boolean ok3 = (incResult == expectedResult); in reportCResult() 135 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationFinnishTest.java | 95 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 96 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 101 boolean ok1 = (compareResult == expectedResult); in reportCResult() 102 boolean ok2 = (keyResult == expectedResult); in reportCResult() 103 boolean ok3 = (incResult == expectedResult); in reportCResult() 116 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationGermanTest.java | 141 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 142 if (expectedResult < -1 || expectedResult > 1) in reportCResult() 148 boolean ok1 = (compareResult == expectedResult); in reportCResult() 149 boolean ok2 = (keyResult == expectedResult); in reportCResult() 150 boolean ok3 = (incResult == expectedResult); in reportCResult() 163 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationFrenchTest.java | 206 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument 207 if (expectedResult < -1 || expectedResult > 1) { in reportCResult() 212 boolean ok1 = (compareResult == expectedResult); in reportCResult() 213 boolean ok2 = (keyResult == expectedResult); in reportCResult() 214 boolean ok3 = (incResult == expectedResult); in reportCResult() 227 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
D | CollationEnglishTest.java | 340 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument 341 if (expectedResult < -1 || expectedResult > 1) in reportCResult() 347 boolean ok1 = (compareResult == expectedResult); in reportCResult() 348 boolean ok2 = (keyResult == expectedResult); in reportCResult() 349 boolean ok3 = (incResult == expectedResult); in reportCResult() 362 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
D | CompoundTransliteratorTest.java | 141 String expectedResult=s; in TestTransliterate() local 145 …ceableString, index(0,0,0,0)", s + "->" + rsource2, result.equals(expectedResult), expectedResult); in TestTransliterate() local 152 … + ":String, index2(1,2,2,3)", s + "->" + rsource3, result.equals(expectedResult), expectedResult); in TestTransliterate() local 216 private void expect(Transliterator t, String source, String expectedResult) { in expect() argument 218 expectAux(t.getID() + ":String", source, result, expectedResult); in expect() local 223 expectAux(t.getID() + ":Replaceable", source, result, expectedResult); in expect() local 253 result.equals(expectedResult), in expect() 254 expectedResult); in expect() local 258 String result, String expectedResult) { in expectAux() argument 260 result.equals(expectedResult), in expectAux() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
D | CompoundTransliteratorTest.java | 142 String expectedResult=s; in TestTransliterate() local 146 …ceableString, index(0,0,0,0)", s + "->" + rsource2, result.equals(expectedResult), expectedResult); in TestTransliterate() local 153 … + ":String, index2(1,2,2,3)", s + "->" + rsource3, result.equals(expectedResult), expectedResult); in TestTransliterate() local 217 private void expect(Transliterator t, String source, String expectedResult) { in expect() argument 219 expectAux(t.getID() + ":String", source, result, expectedResult); in expect() local 224 expectAux(t.getID() + ":Replaceable", source, result, expectedResult); in expect() local 254 result.equals(expectedResult), in expect() 255 expectedResult); in expect() local 259 String result, String expectedResult) { in expectAux() argument 261 result.equals(expectedResult), in expectAux() [all …]
|
/external/icu/icu4c/source/test/iotest/ |
D | iotest.cpp | 211 UChar expectedResult[512]; in DataDrivenPrintf() local 248 tempStr.extract(expectedResult, UPRV_LENGTHOF(expectedResult), errorCode); in DataDrivenPrintf() 299 if (u_strcmp(uBuffer, expectedResult) != 0) { in DataDrivenPrintf() 302 u_austrncpy(cExpected, expectedResult, sizeof(cExpected)); in DataDrivenPrintf() 328 if (u_strcmp(uBuffer, expectedResult) != 0) { in DataDrivenPrintf() 331 u_austrncpy(cExpected, expectedResult, sizeof(cExpected)); in DataDrivenPrintf() 376 UChar expectedResult[512]; in DataDrivenScanf() local 413 tempStr.extract(expectedResult, UPRV_LENGTHOF(expectedResult), errorCode); in DataDrivenScanf() 426 expectedDbl = atof(u_austrcpy(cBuffer, expectedResult)); in DataDrivenScanf() 435 expectedFlt = (float)atof(u_austrcpy(cBuffer, expectedResult)); in DataDrivenScanf() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | transtst.h | 378 const UnicodeString& expectedResult); 382 const UnicodeString& expectedResult, 388 const UnicodeString& expectedResult, 393 const UnicodeString& expectedResult, 398 const UnicodeString& expectedResult, 404 const UnicodeString& expectedResult); 408 const UnicodeString& expectedResult);
|
D | strcase.cpp | 77 UnicodeString expectedResult; in TestCaseConversion() local 85 expectedResult = UnicodeString("i\\u0307stanbul, not constantinople!", "").unescape(); in TestCaseConversion() 86 if (test4 != expectedResult) in TestCaseConversion() 87 errln("1. toLower failed: expected \"" + expectedResult + "\", got \"" + test4 + "\"."); in TestCaseConversion() 91 expectedResult = lowercaseTurkish; in TestCaseConversion() 92 if (test4 != expectedResult) in TestCaseConversion() 93 errln("2. toLower failed: expected \"" + expectedResult + "\", got \"" + test4 + "\"."); in TestCaseConversion() 101 expectedResult = "TOPKAPI PALACE, ISTANBUL"; in TestCaseConversion() 102 if (test4 != expectedResult) in TestCaseConversion() 103 errln("toUpper failed: expected \"" + expectedResult + "\", got \"" + test4 + "\"."); in TestCaseConversion() [all …]
|
D | currcoll.cpp | 84 Collator::EComparisonResult expectedResult = Collator::EQUAL; in currencyTest() local 104 expectedResult = Collator::LESS; in currencyTest() 108 expectedResult = Collator::EQUAL; in currencyTest() 112 expectedResult = Collator::GREATER; in currencyTest() 138 …t( source, target, sourceKey, targetKey, compareResult, keyResult, compareResult, expectedResult ); in currencyTest()
|