Home
last modified time | relevance | path

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

123456

/third_party/typescript/src/testRunner/unittests/config/
DconvertTypeAcquisitionFromJson.ts4 …function assertTypeAcquisition(json: any, configFileName: string, expectedResult: ExpectedResult) {
5 assertTypeAcquisitionWithJson(json, configFileName, expectedResult);
6 assertTypeAcquisitionWithJsonNode(json, configFileName, expectedResult);
9 …erifyAcquisition(actualTypeAcquisition: TypeAcquisition | undefined, expectedResult: ExpectedResul…
11 const expectedTypeAcquisition = JSON.stringify(expectedResult.typeAcquisition);
15 …function verifyErrors(actualErrors: Diagnostic[], expectedResult: ExpectedResult, hasLocation?: bo…
16 const expectedErrors = expectedResult.errors;
17 …assert.isTrue(expectedResult.errors.length === actualErrors.length, `Expected error: ${JSON.string…
31 …function assertTypeAcquisitionWithJson(json: any, configFileName: string, expectedResult: Expected…
34 verifyAcquisition(actualTypeAcquisition, expectedResult);
[all …]
DconvertCompilerOptionsFromJson.ts21 …function isExpectedResultWithParsingFailure(expectedResult: ExpectedResult): expectedResult is Exp…
22 return !!(expectedResult as ExpectedResultWithParsingFailure).hasParseErrors;
25 …function assertCompilerOptions(json: any, configFileName: string, expectedResult: ExpectedResultWi…
26 assertCompilerOptionsWithJson(json, configFileName, expectedResult);
27 assertCompilerOptionsWithJsonNode(json, configFileName, expectedResult);
30 …function assertCompilerOptionsWithJson(json: any, configFileName: string, expectedResult: Expected…
34 …const expectedCompilerOptions = JSON.stringify({ ...expectedResult.compilerOptions, configFilePath…
37 verifyErrors(actualErrors, expectedResult.errors, /*ignoreLocation*/ true);
40 …assertCompilerOptionsWithJsonNode(json: any, configFileName: string, expectedResult: ExpectedResul…
41 assertCompilerOptionsWithJsonText(JSON.stringify(json), configFileName, expectedResult);
[all …]
/third_party/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()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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()
/third_party/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()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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 …]
/third_party/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 …]
/third_party/vk-gl-cts/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()
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestautomation_rect.c334 SDL_Rect *result, SDL_Rect *expectedResult) in _validateIntersectRectResults() argument
337 if (result && expectedResult) { in _validateIntersectRectResults()
338 …heck(result->x == expectedResult->x && result->y == expectedResult->y && result->w == expectedResu… in _validateIntersectRectResults()
343 expectedResult->x, expectedResult->y, expectedResult->w, expectedResult->h); in _validateIntersectRectResults()
352 SDL_Rect *result, SDL_Rect *expectedResult) in _validateUnionRectResults() argument
362 …heck(result->x == expectedResult->x && result->y == expectedResult->y && result->w == expectedResu… in _validateUnionRectResults()
367 expectedResult->x, expectedResult->y, expectedResult->w, expectedResult->h); in _validateUnionRectResults()
480 SDL_Rect expectedResult; in rect_testIntersectRectPartial() local
490 expectedResult.x = refRectB.x; in rect_testIntersectRectPartial()
491 expectedResult.y = refRectB.y; in rect_testIntersectRectPartial()
[all …]
/third_party/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()
373 const int32_t expectedResult = 3; in ScanfMultipleIntegers() local
391 if(result != expectedResult){ in ScanfMultipleIntegers()
393 result, expectedResult); in ScanfMultipleIntegers()
413 UChar expectedResult[512]; in DataDrivenScanf() local
[all …]
/third_party/typescript/src/testRunner/unittests/
DcreateSetShim.ts137 const expectedResult = "1;3;2;4;0;3;999;A;Z;X;Y;"; constant
142 assert.equal(nativeSetForEachResult, expectedResult, "nativeSet-forEach");
146 assert.equal(nativeSetIteratorResult, expectedResult, "nativeSet-iterator");
151 assert.equal(shimSetForEachResult, expectedResult, "shimSet-forEach");
155 assert.equal(shimSetIteratorResult, expectedResult, "shimSet-iterator");
159 const expectedResult = "true;3;2;4;false;3;null;undefined;Z;X;Y;"; constant
164 assert.equal(nativeSetForEachResult, expectedResult, "nativeSet-forEach");
168 assert.equal(nativeSetIteratorResult, expectedResult, "nativeSet-iterator");
173 assert.equal(shimSetForEachResult, expectedResult, "shimSet-forEach");
177 assert.equal(shimSetIteratorResult, expectedResult, "shimSet-iterator");
DcreateMapShim.ts139 const expectedResult = "1:1;3:3;2:Y2;4:X4;0:X0;3:Y3;999:999;A:A;Z:Z;X:X;Y:Y;"; constant
144 assert.equal(nativeMapForEachResult, expectedResult, "nativeMap-forEach");
148 assert.equal(nativeMapIteratorResult, expectedResult, "nativeMap-iterator");
153 assert.equal(shimMapForEachResult, expectedResult, "shimMap-forEach");
157 assert.equal(shimMapIteratorResult, expectedResult, "shimMap-iterator");
161 … const expectedResult = "true:1;3:3;2:Y2;4:X4;false:X0;3:Y3;null:999;undefined:A;Z:Z;X:X;Y:Y;"; constant
166 assert.equal(nativeMapForEachResult, expectedResult, "nativeMap-forEach");
170 assert.equal(nativeMapIteratorResult, expectedResult, "nativeMap-iterator");
175 assert.equal(shimMapForEachResult, expectedResult, "shimMap-forEach");
179 assert.equal(shimMapIteratorResult, expectedResult, "shimMap-iterator");
/third_party/icu/icu4c/source/test/intltest/
Dtranstst.h379 const UnicodeString& expectedResult);
383 const UnicodeString& expectedResult,
389 const UnicodeString& expectedResult,
394 const UnicodeString& expectedResult,
399 const UnicodeString& expectedResult,
405 const UnicodeString& expectedResult);
409 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()

123456