Home
last modified time | relevance | path

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

123456

/external/icu/icu4c/source/test/cintltst/
Dccolltst.c93 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()
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.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 …]
DLotusCollationKoreanTest.java76 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument
77 if (expectedResult < -1 || expectedResult > 1) { in reportCResult()
82 boolean ok1 = (compareResult == expectedResult); in reportCResult()
83 boolean ok2 = (keyResult == expectedResult); in reportCResult()
84 boolean ok3 = (incResult == expectedResult); in reportCResult()
97 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
DCollationSpanishTest.java110 … 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()
131 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
DCollationTurkishTest.java117 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument
118 if (expectedResult < -1 || expectedResult > 1) { in reportCResult()
123 boolean ok1 = (compareResult == expectedResult); in reportCResult()
124 boolean ok2 = (keyResult == expectedResult); in reportCResult()
125 boolean ok3 = (incResult == expectedResult); in reportCResult()
138 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
DCollationFinnishTest.java98 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument
99 if (expectedResult < -1 || expectedResult > 1) { in reportCResult()
104 boolean ok1 = (compareResult == expectedResult); in reportCResult()
105 boolean ok2 = (keyResult == expectedResult); in reportCResult()
106 boolean ok3 = (incResult == expectedResult); in reportCResult()
119 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
DCollationGermanTest.java144 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument
145 if (expectedResult < -1 || expectedResult > 1) in reportCResult()
151 boolean ok1 = (compareResult == expectedResult); in reportCResult()
152 boolean ok2 = (keyResult == expectedResult); in reportCResult()
153 boolean ok3 = (incResult == expectedResult); in reportCResult()
166 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
DCollationFrenchTest.java209 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument
210 if (expectedResult < -1 || expectedResult > 1) { in reportCResult()
215 boolean ok1 = (compareResult == expectedResult); in reportCResult()
216 boolean ok2 = (keyResult == expectedResult); in reportCResult()
217 boolean ok3 = (incResult == expectedResult); in reportCResult()
230 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
DCollationEnglishTest.java343 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument
344 if (expectedResult < -1 || expectedResult > 1) in reportCResult()
350 boolean ok1 = (compareResult == expectedResult); in reportCResult()
351 boolean ok2 = (keyResult == expectedResult); in reportCResult()
352 boolean ok3 = (incResult == expectedResult); in reportCResult()
365 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationCurrencyTest.java70 int expectedResult = 0; in TestCurrency() local
84 expectedResult = -1; in TestCurrency()
86 expectedResult = 0; in TestCurrency()
88 expectedResult = 1; in TestCurrency()
110 …t( source, target, sourceKey, targetKey, compareResult, keyResult, compareResult, expectedResult ); in TestCurrency()
116 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument
117 if (expectedResult < -1 || expectedResult > 1) { in reportCResult()
122 boolean ok1 = (compareResult == expectedResult); in reportCResult()
123 boolean ok2 = (keyResult == expectedResult); in reportCResult()
124 boolean ok3 = (incResult == expectedResult); in reportCResult()
[all …]
DLotusCollationKoreanTest.java79 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument
80 if (expectedResult < -1 || expectedResult > 1) { in reportCResult()
85 boolean ok1 = (compareResult == expectedResult); in reportCResult()
86 boolean ok2 = (keyResult == expectedResult); in reportCResult()
87 boolean ok3 = (incResult == expectedResult); in reportCResult()
100 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
DCollationTurkishTest.java120 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument
121 if (expectedResult < -1 || expectedResult > 1) { in reportCResult()
126 boolean ok1 = (compareResult == expectedResult); in reportCResult()
127 boolean ok2 = (keyResult == expectedResult); in reportCResult()
128 boolean ok3 = (incResult == expectedResult); in reportCResult()
141 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
DCollationFinnishTest.java101 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument
102 if (expectedResult < -1 || expectedResult > 1) { in reportCResult()
107 boolean ok1 = (compareResult == expectedResult); in reportCResult()
108 boolean ok2 = (keyResult == expectedResult); in reportCResult()
109 boolean ok3 = (incResult == expectedResult); in reportCResult()
122 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
DCollationSpanishTest.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.java147 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument
148 if (expectedResult < -1 || expectedResult > 1) in reportCResult()
154 boolean ok1 = (compareResult == expectedResult); in reportCResult()
155 boolean ok2 = (keyResult == expectedResult); in reportCResult()
156 boolean ok3 = (incResult == expectedResult); in reportCResult()
169 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
DCollationFrenchTest.java212 … int compareResult, int keyResult, int incResult, int expectedResult ) { in reportCResult() argument
213 if (expectedResult < -1 || expectedResult > 1) { in reportCResult()
218 boolean ok1 = (compareResult == expectedResult); in reportCResult()
219 boolean ok2 = (keyResult == expectedResult); in reportCResult()
220 boolean ok3 = (incResult == expectedResult); in reportCResult()
233 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
DCollationEnglishTest.java346 … int compareResult, int keyResult, int incResult, int expectedResult ){ in reportCResult() argument
347 if (expectedResult < -1 || expectedResult > 1) in reportCResult()
353 boolean ok1 = (compareResult == expectedResult); in reportCResult()
354 boolean ok2 = (keyResult == expectedResult); in reportCResult()
355 boolean ok3 = (incResult == expectedResult); in reportCResult()
368 sExpect = CollationTest.appendCompareResult(expectedResult, sExpect); in reportCResult()
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DCompoundTransliteratorTest.java145 String expectedResult=s; in TestTransliterate() local
149 …ceableString, index(0,0,0,0)", s + "->" + rsource2, result.equals(expectedResult), expectedResult); in TestTransliterate() local
156 … + ":String, index2(1,2,2,3)", s + "->" + rsource3, result.equals(expectedResult), expectedResult); in TestTransliterate() local
220 private void expect(Transliterator t, String source, String expectedResult) { in expect() argument
222 expectAux(t.getID() + ":String", source, result, expectedResult); in expect() local
227 expectAux(t.getID() + ":Replaceable", source, result, expectedResult); in expect() local
257 result.equals(expectedResult), in expect()
258 expectedResult); in expect() local
262 String result, String expectedResult) { in expectAux() argument
264 result.equals(expectedResult), in expectAux()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
DCompoundTransliteratorTest.java148 String expectedResult=s; in TestTransliterate() local
152 …ceableString, index(0,0,0,0)", s + "->" + rsource2, result.equals(expectedResult), expectedResult); in TestTransliterate() local
159 … + ":String, index2(1,2,2,3)", s + "->" + rsource3, result.equals(expectedResult), expectedResult); in TestTransliterate() local
223 private void expect(Transliterator t, String source, String expectedResult) { in expect() argument
225 expectAux(t.getID() + ":String", source, result, expectedResult); in expect() local
230 expectAux(t.getID() + ":Replaceable", source, result, expectedResult); in expect() local
260 result.equals(expectedResult), in expect()
261 expectedResult); in expect() local
265 String result, String expectedResult) { in expectAux() argument
267 result.equals(expectedResult), in expectAux()
[all …]
/external/deqp/external/openglcts/modules/glesext/gpu_shader5/
DesextcGPUShader5AtomicCountersArrayIndexing.cpp146 const glw::GLuint expectedResult = 1000; in iterate() local
148 …if (expectedResult != bufferData[0] || expectedResult + 1 != bufferData[1] || expectedResult + 2 !… in iterate()
149 expectedResult + 3 != bufferData[3]) in iterate()
152 << " (" << expectedResult << ", " << expectedResult << ", " << expectedResult << ", " in iterate()
153 << expectedResult << ") Result Data" in iterate()
/external/icu/icu4c/source/test/iotest/
Diotest.cpp211 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/
Dtranstst.h378 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);
Dcurrcoll.cpp84 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()
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
DIntMathTest.java238 BigInteger expectedResult = valueOf(a).add(valueOf(b)); in testCheckedAdd() local
239 boolean expectedSuccess = fitsInInt(expectedResult); in testCheckedAdd()
253 BigInteger expectedResult = valueOf(a).subtract(valueOf(b)); in testCheckedSubtract() local
254 boolean expectedSuccess = fitsInInt(expectedResult); in testCheckedSubtract()
268 BigInteger expectedResult = valueOf(a).multiply(valueOf(b)); in testCheckedMultiply() local
269 boolean expectedSuccess = fitsInInt(expectedResult); in testCheckedMultiply()
283 BigInteger expectedResult = valueOf(b).pow(k); in testCheckedPow() local
284 boolean expectedSuccess = fitsInInt(expectedResult); in testCheckedPow()
286 assertEquals(b + "^" + k, force32(expectedResult.intValue()), IntMath.checkedPow(b, k)); in testCheckedPow()

123456