Home
last modified time | relevance | path

Searched refs:testCases (Results 1 – 25 of 94) sorted by relevance

1234

/external/boringssl/src/ssl/test/runner/
Drunner.go420 var testCases []testCase var
2448 testCases = append(testCases, basicTests...)
2451 testCases = append(testCases, testCase{
2478 testCases = append(testCases, testCase{
2484 testCases = append(testCases, testCase{
2493 testCases = append(testCases, testCase{
2502 testCases = append(testCases, testCase{
2595 testCases = append(testCases, testCase{
2619 testCases = append(testCases, testCase{
2647 testCases = append(testCases, testCase{
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcbiditransformtst.c278 static const UBidiTestCases testCases[] = { in testAllTransformOptions() local
391 uint32_t i, nTestCases = sizeof(testCases) / sizeof(testCases[0]); in testAllTransformOptions()
402 expectedStr = testCases[i].pReorderAndMirror; in testAllTransformOptions()
404 testCases[i].inLevel, testCases[i].inOr, in testAllTransformOptions()
405 testCases[i].outLevel, testCases[i].outOr, in testAllTransformOptions()
407 verifyResultsForAllOpt(&testCases[i], src, dest, expectedStr, U_SHAPE_DIGITS_NOOP, in testAllTransformOptions()
411 expectedStr = digits[j] == U_SHAPE_DIGITS_ALEN2AN_INIT_LR ? testCases[i].pContextShapes in testAllTransformOptions()
412 : testCases[i].pReorderNoMirror; in testAllTransformOptions()
416 testCases[i].inLevel, testCases[i].inOr, in testAllTransformOptions()
417 testCases[i].outLevel, testCases[i].outOr, in testAllTransformOptions()
[all …]
Dcg7coll.c68 const static UChar testCases[][MAX_TOKEN_LEN] = { variable
190 doTest(myCollation, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS); in TestG7Locales()
222 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], UCOL_LESS); in TestDemo1()
252 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], UCOL_LESS); in TestDemo2()
282 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], UCOL_LESS); in TestDemo3()
311 doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], UCOL_LESS); in TestDemo4()
Dcloctst.c1688 } testCases[] = { in TestKeywordVariants() local
1736 for(i = 0; i < UPRV_LENGTHOF(testCases); i++) { in TestKeywordVariants()
1739 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants()
1741 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1743 testCases[i].localeID, in TestKeywordVariants()
1744 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1748 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1749 … log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1754 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1755 … log_err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
[all …]
Dputiltst.c307 const char *testCases[] = { in TestCompareVersions() local
322 for(j=0;testCases[j]!=NULL;j+=3) { in TestCompareVersions()
323 v1str = testCases[j+0]; in TestCompareVersions()
324 opstr = testCases[j+1]; in TestCompareVersions()
325 v2str = testCases[j+2]; in TestCompareVersions()
552 } testCases[] = { in toolutil_findBasename() local
570 int32_t count=UPRV_LENGTHOF(testCases); in toolutil_findBasename()
577 const char *input = STRNULL(testCases[i].inBuf); in toolutil_findBasename()
578 const char *expect = STRNULL(testCases[i].expectResult); in toolutil_findBasename()
580 result = STRNULL(findBasename(testCases[i].inBuf)); in toolutil_findBasename()
[all …]
/external/icu/icu4c/source/test/intltest/
Dg7coll.cpp21 static const UChar testCases[][G7CollationTest::MAX_TOKEN_LEN] = { variable
143 …doTest(myCollation.getAlias(), testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); in TestG7Locales()
175 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); in TestDemo1()
209 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS); in TestDemo2()
243 … doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS); in TestDemo3()
272 … doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], Collator::LESS); in TestDemo4()
Dloctest.cpp1593 } testCases[] = { in TestKeywordVariants() local
1623 for(i = 0; i < UPRV_LENGTHOF(testCases); i++) { in TestKeywordVariants()
1625 Locale l(testCases[i].localeID); in TestKeywordVariants()
1628 if(status != testCases[i].expectedStatus) { in TestKeywordVariants()
1630 u_errorName(testCases[i].expectedStatus), u_errorName(status)); in TestKeywordVariants()
1634 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) { in TestKeywordVariants()
1635 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount); in TestKeywordVariants()
1643 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) { in TestKeywordVariants()
1644 … err("Expected to get keyword value %s, got %s\n", testCases[i].expectedKeywords[j], keyword); in TestKeywordVariants()
1650 if(*keywordString != UnicodeString(testCases[i].expectedKeywords[j], "")) { in TestKeywordVariants()
[all …]
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberMatcherTest.java542 List<NumberTest> testCases = new ArrayList<NumberTest>(); in testMatchesWithPossibleLeniency() local
543 testCases.addAll(Arrays.asList(STRICT_GROUPING_CASES)); in testMatchesWithPossibleLeniency()
544 testCases.addAll(Arrays.asList(EXACT_GROUPING_CASES)); in testMatchesWithPossibleLeniency()
545 testCases.addAll(Arrays.asList(VALID_CASES)); in testMatchesWithPossibleLeniency()
546 testCases.addAll(Arrays.asList(POSSIBLE_ONLY_CASES)); in testMatchesWithPossibleLeniency()
547 doTestNumberMatchesForLeniency(testCases, Leniency.POSSIBLE); in testMatchesWithPossibleLeniency()
551 List<NumberTest> testCases = new ArrayList<NumberTest>(); in testNonMatchesWithPossibleLeniency() local
552 testCases.addAll(Arrays.asList(IMPOSSIBLE_CASES)); in testNonMatchesWithPossibleLeniency()
553 doTestNumberNonMatchesForLeniency(testCases, Leniency.POSSIBLE); in testNonMatchesWithPossibleLeniency()
557 List<NumberTest> testCases = new ArrayList<NumberTest>(); in testMatchesWithValidLeniency() local
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DG7CollationTest.java28 private static String[] testCases = { field in G7CollationTest
84 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], -1); in TestDemo1()
111 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], -1); in TestDemo2()
139 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], -1); in TestDemo3()
166 doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], -1); in TestDemo4()
197 doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], -1); in TestG7Data()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/
DTestStreaming.java44 static final TestCase[] testCases = { field in TestStreaming
82 int nTests = testCases.length, nLevels = paraLevels.length; in testStreaming()
94 src = testCases[i].textIn; in testStreaming()
96 chunk = testCases[i].chunk; in testStreaming()
97 nPortions = testCases[i].nPortions[levelIndex]; in testStreaming()
120 processedLen != testCases[i].portionLens[levelIndex][j]; in testStreaming()
135 testCases[i].message[levelIndex] + " }\n"); in testStreaming()
DTestInverse.java31 static final String[] testCases = { field in TestInverse
46 log("inverse Bidi: testInverse(L) with " + testCases.length + in testInverse()
48 for(i = 0; i < testCases.length; ++i) { in testInverse()
50 _testInverseBidi(bidi, testCases[i], Bidi.DIRECTION_LEFT_TO_RIGHT); in testInverse()
53 log("inverse Bidi: testInverse(R) with " + testCases.length + in testInverse()
55 for (i = 0; i < testCases.length; ++i) { in testInverse()
57 _testInverseBidi(bidi, testCases[i], Bidi.DIRECTION_RIGHT_TO_LEFT); in testInverse()
DTestReorderRunsOnly.java37 static final TestCase testCases[] = { field in TestReorderRunsOnly
132 for (i = 0, nCases = testCases.length; i < nCases; i++) { in testReorderRunsOnly()
133 src = testCases[i].textIn; in testReorderRunsOnly()
144 testCases[i].textOut[option][level], in testReorderRunsOnly()
147 if ((option == 0) && (testCases[i].noroundtrip[level] > 0)) { in testReorderRunsOnly()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
DTestStreaming.java43 static final TestCase[] testCases = { field in TestStreaming
81 int nTests = testCases.length, nLevels = paraLevels.length; in testStreaming()
93 src = testCases[i].textIn; in testStreaming()
95 chunk = testCases[i].chunk; in testStreaming()
96 nPortions = testCases[i].nPortions[levelIndex]; in testStreaming()
119 processedLen != testCases[i].portionLens[levelIndex][j]; in testStreaming()
134 testCases[i].message[levelIndex] + " }\n"); in testStreaming()
DTestInverse.java30 static final String[] testCases = { field in TestInverse
45 log("inverse Bidi: testInverse(L) with " + testCases.length + in testInverse()
47 for(i = 0; i < testCases.length; ++i) { in testInverse()
49 _testInverseBidi(bidi, testCases[i], Bidi.DIRECTION_LEFT_TO_RIGHT); in testInverse()
52 log("inverse Bidi: testInverse(R) with " + testCases.length + in testInverse()
54 for (i = 0; i < testCases.length; ++i) { in testInverse()
56 _testInverseBidi(bidi, testCases[i], Bidi.DIRECTION_RIGHT_TO_LEFT); in testInverse()
DTestReorderRunsOnly.java36 static final TestCase testCases[] = { field in TestReorderRunsOnly
131 for (i = 0, nCases = testCases.length; i < nCases; i++) { in testReorderRunsOnly()
132 src = testCases[i].textIn; in testReorderRunsOnly()
143 testCases[i].textOut[option][level], in testReorderRunsOnly()
146 if ((option == 0) && (testCases[i].noroundtrip[level] > 0)) { in testReorderRunsOnly()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DG7CollationTest.java27 private static String[] testCases = { field in G7CollationTest
83 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], -1); in TestDemo1()
110 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], -1); in TestDemo2()
138 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], -1); in TestDemo3()
165 doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], -1); in TestDemo4()
196 doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], -1); in TestG7Data()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/
DTestStringPrepProfiles.java36 private static String[][] testCases = { field in TestStringPrepProfiles
147 for (int i = 0; i < testCases.length; i++) { in TestProfiles()
148 for (int j = 0; j < testCases[i].length; j++) { in TestProfiles()
150 profileName = testCases[i][j]; in TestProfiles()
154 src = testCases[i][j]; in TestProfiles()
155 expected = testCases[i][++j]; in TestProfiles()
/external/deqp/execserver/tools/
DxsTest.cpp206 void runCases (const std::vector<TestCase*>& testCases);
222 void TestExecutor::runCases (const std::vector<TestCase*>& testCases) in runCases() argument
225 int numCases = (int)testCases.size(); in runCases()
227 for (std::vector<TestCase*>::const_iterator i = testCases.begin(); i != testCases.end(); i++) in runCases()
892 std::vector<TestCase*> testCases; in runExecServerTests() local
893 testCases.push_back(new ConnectTest(testCtx)); in runExecServerTests()
894 testCases.push_back(new HelloTest(testCtx)); in runExecServerTests()
895 testCases.push_back(new ExecFailTest(testCtx)); in runExecServerTests()
896 testCases.push_back(new SimpleExecTest(testCtx)); in runExecServerTests()
897 testCases.push_back(new InfoTest(testCtx)); in runExecServerTests()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/
DTestStringPrepProfiles.java35 private static String[][] testCases = { field in TestStringPrepProfiles
146 for (int i = 0; i < testCases.length; i++) { in TestProfiles()
147 for (int j = 0; j < testCases[i].length; j++) { in TestProfiles()
149 profileName = testCases[i][j]; in TestProfiles()
153 src = testCases[i][j]; in TestProfiles()
154 expected = testCases[i][++j]; in TestProfiles()
/external/skia/tests/
DDashPathEffectTest.cpp40 } testCases[] = { in DEF_TEST() local
68 for (int j = 0; j < (int)SK_ARRAY_COUNT(testCases); ++j) { in DEF_TEST()
73 src.moveTo(testCases[j].fPts[k]); in DEF_TEST()
74 src.lineTo(testCases[j].fPts[(k+1)%2]); in DEF_TEST()
78 REPORTER_ASSERT(r, actualResult == testCases[j].fExpectedResult); in DEF_TEST()
/external/testng/src/test/java/test/tmp/
DTestCaseFactory.java15 Object[] testCases = new Object[1]; in createTestCases() local
16 testCases[0] = new MyTestClass() { in createTestCases()
18 return testCases; in createTestCases()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DICUResourceBundleCollationTest.java159 boolean truncate, String[] testCases) { in getFunctionalEquivalentTestCases() argument
165 for(int i = 0; i < testCases.length ;i+=3) { in getFunctionalEquivalentTestCases()
166 boolean expectAvail = T_STR.equals(testCases[i+0]); in getFunctionalEquivalentTestCases()
167 ULocale inLocale = new ULocale(testCases[i+1]); in getFunctionalEquivalentTestCases()
168 ULocale expectLocale = new ULocale(testCases[i+2]); in getFunctionalEquivalentTestCases()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/util/
DICUResourceBundleCollationTest.java158 boolean truncate, String[] testCases) { in getFunctionalEquivalentTestCases() argument
164 for(int i = 0; i < testCases.length ;i+=3) { in getFunctionalEquivalentTestCases()
165 boolean expectAvail = T_STR.equals(testCases[i+0]); in getFunctionalEquivalentTestCases()
166 ULocale inLocale = new ULocale(testCases[i+1]); in getFunctionalEquivalentTestCases()
167 ULocale expectLocale = new ULocale(testCases[i+2]); in getFunctionalEquivalentTestCases()
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_symlink/
Dis_symlink.pass.cpp46 const TestCase testCases[] = { in TEST_CASE() local
58 for (auto& TC : testCases) { in TEST_CASE()
70 const TestCase testCases[] = { in TEST_CASE() local
77 for (auto& TC : testCases) { in TEST_CASE()
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.remove/
Dremove.pass.cpp63 const path testCases[] = { in TEST_CASE() local
69 for (auto& p : testCases) { in TEST_CASE()
84 const path testCases[] = { in TEST_CASE() local
90 for (auto& p : testCases) { in TEST_CASE()

1234