Home
last modified time | relevance | path

Searched refs:expectedResult (Results 1 – 25 of 116) sorted by relevance

12345

/external/icu/icu4c/source/test/cintltst/
Dccolltst.c91 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()
Dccurrtst.c109 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/
DCollationCurrencyTest.java63 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 …]
DLotusCollationKoreanTest.java68 … 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()
DCollationFinnishTest.java90 … 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()
DCollationSpanishTest.java102 … 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()
DCollationTurkishTest.java109 … 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()
DCollationGermanTest.java135 … 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()
DCollationEnglishTest.java334 … 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()
DCollationFrenchTest.java200 … 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()
DCollationKanaTest.java204 … 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/
DCollationCurrencyTest.java67 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 …]
DCollationSpanishTest.java106 … 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()
DLotusCollationKoreanTest.java72 … 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()
DCollationFinnishTest.java94 … 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()
DCollationTurkishTest.java113 … 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()
DCollationGermanTest.java139 … 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()
DCollationFrenchTest.java204 … 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()
DCollationEnglishTest.java338 … 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/
DCompoundTransliteratorTest.java139 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/
DCompoundTransliteratorTest.java143 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/
Dstrcase.cpp68 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 …]
Dtranstst.h376 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);
Dcurrcoll.cpp83 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/
Diotest.cpp208 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 …]

12345