Searched refs:testCases (Results 1 - 25 of 69) sorted by relevance

123

/external/testng/src/test/java/test/tmp/
H A DTestCaseFactory.java15 Object[] testCases = new Object[1];
16 testCases[0] = new MyTestClass() {
18 return testCases;
/external/v8/test/mjsunit/regress/
H A Dregress-osr-in-literal.js10 var testCases = [
25 for (var i = 0; i < testCases.length; ++i) {
26 var source = "(function f" + i + "(x) { return " + testCases[i].s + "})";
29 if (testCases[i].r) assertEquals(testCases[i].r, result);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/
H A DTestStringPrepProfiles.java39 private static String[][] testCases = { field in class:TestStringPrepProfiles
149 for (int i = 0; i < testCases.length; i++) {
150 for (int j = 0; j < testCases[i].length; j++) {
152 profileName = testCases[i][j];
156 src = testCases[i][j];
157 expected = testCases[i][++j];
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/
H A DTestStringPrepProfiles.java35 private static String[][] testCases = { field in class:TestStringPrepProfiles
145 for (int i = 0; i < testCases.length; i++) {
146 for (int j = 0; j < testCases[i].length; j++) {
148 profileName = testCases[i][j];
152 src = testCases[i][j];
153 expected = testCases[i][++j];
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/
H A DTestStreaming.java43 static final TestCase[] testCases = { field in class:TestStreaming
80 int nTests = testCases.length, nLevels = paraLevels.length;
92 src = testCases[i].textIn;
94 chunk = testCases[i].chunk;
95 nPortions = testCases[i].nPortions[levelIndex];
118 processedLen != testCases[i].portionLens[levelIndex][j];
133 testCases[i].message[levelIndex] + " }\n");
H A DTestReorderRunsOnly.java37 static final TestCase testCases[] = { field in class:TestReorderRunsOnly
130 for (i = 0, nCases = testCases.length; i < nCases; i++) {
131 src = testCases[i].textIn;
142 testCases[i].textOut[option][level],
145 if ((option == 0) && (testCases[i].noroundtrip[level] > 0)) {
H A DTestInverse.java30 static final String[] testCases = { field in class:TestInverse
44 log("inverse Bidi: testInverse(L) with " + testCases.length +
46 for(i = 0; i < testCases.length; ++i) {
48 _testInverseBidi(bidi, testCases[i], Bidi.DIRECTION_LEFT_TO_RIGHT);
51 log("inverse Bidi: testInverse(R) with " + testCases.length +
53 for (i = 0; i < testCases.length; ++i) {
55 _testInverseBidi(bidi, testCases[i], Bidi.DIRECTION_RIGHT_TO_LEFT);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
H A DTestStreaming.java39 static final TestCase[] testCases = { field in class:TestStreaming
76 int nTests = testCases.length, nLevels = paraLevels.length;
88 src = testCases[i].textIn;
90 chunk = testCases[i].chunk;
91 nPortions = testCases[i].nPortions[levelIndex];
114 processedLen != testCases[i].portionLens[levelIndex][j];
129 testCases[i].message[levelIndex] + " }\n");
H A DTestReorderRunsOnly.java33 static final TestCase testCases[] = { field in class:TestReorderRunsOnly
126 for (i = 0, nCases = testCases.length; i < nCases; i++) {
127 src = testCases[i].textIn;
138 testCases[i].textOut[option][level],
141 if ((option == 0) && (testCases[i].noroundtrip[level] > 0)) {
H A DTestInverse.java26 static final String[] testCases = { field in class:TestInverse
40 log("inverse Bidi: testInverse(L) with " + testCases.length +
42 for(i = 0; i < testCases.length; ++i) {
44 _testInverseBidi(bidi, testCases[i], Bidi.DIRECTION_LEFT_TO_RIGHT);
47 log("inverse Bidi: testInverse(R) with " + testCases.length +
49 for (i = 0; i < testCases.length; ++i) {
51 _testInverseBidi(bidi, testCases[i], Bidi.DIRECTION_RIGHT_TO_LEFT);
/external/skia/tests/
H A DDashPathEffectTest.cpp43 } testCases[] = { local
71 for (int j = 0; j < (int)SK_ARRAY_COUNT(testCases); ++j) {
76 src.moveTo(testCases[j].fPts[k]);
77 src.lineTo(testCases[j].fPts[(k+1)%2]);
81 REPORTER_ASSERT(r, actualResult == testCases[j].fExpectedResult);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
H A DG7CollationTest.java32 private static String[] testCases = { field in class:G7CollationTest
87 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], -1);
113 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], -1);
140 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], -1);
166 doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], -1);
196 doTest(tblColl1, testCases[result
[all...]
H A DCollationDummyTest.java34 //testSourceCases[][] and testTargetCases[][], testCases[][] are ported from the file callcoll.c in icu4c
115 private static char[][] testCases = { field in class:CollationDummyTest
217 for (i = 0; i < testCases.length - 1; i++) {
218 for (j = i + 1; j < testCases.length; j += 1) {
219 doTest(myCollation, testCases[i], testCases[j], -1);
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
H A DG7CollationTest.java28 private static String[] testCases = { field in class:G7CollationTest
83 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], -1);
109 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], -1);
136 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], -1);
162 doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], -1);
192 doTest(tblColl1, testCases[result
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Dcg7coll.c66 const static UChar testCases[][MAX_TOKEN_LEN] = { variable
188 doTest(myCollation, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS);
220 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], UCOL_LESS);
250 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], UCOL_LESS);
280 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], UCOL_LESS);
309 doTest(myCollation, testCases[result
[all...]
H A Dputiltst.c305 const char *testCases[] = { local
320 for(j=0;testCases[j]!=NULL;j+=3) {
321 v1str = testCases[j+0];
322 opstr = testCases[j+1];
323 v2str = testCases[j+2];
550 } testCases[] = { local
568 int32_t count=(sizeof(testCases)/sizeof(testCases[0]));
575 const char *input = STRNULL(testCases[i].inBuf);
576 const char *expect = STRNULL(testCases[
596 } testCases[] = { local
[all...]
H A Dcloctst.c1683 } testCases[] = { local
1731 for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
1734 keywords = uloc_openKeywords(testCases[i].localeID, &status);
1736 if(status != testCases[i].expectedStatus) {
1738 testCases[i].localeID,
1739 u_errorName(testCases[i].expectedStatus), u_errorName(status));
1743 if((keyCount = uenum_count(keywords, &status)) != testCases[i].numKeywords) {
1744 log_err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount);
1749 if(strcmp(keyword, testCases[
1825 } testCases[] = { local
2040 } testCases[] = { local
2182 } testCases[] = { local
2245 } testCases[] = { local
2394 } testCases[] = { local
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dg7coll.cpp19 static const UChar testCases[][G7CollationTest::MAX_TOKEN_LEN] = { variable
141 doTest(myCollation.getAlias(), testCases[results[i][j]], testCases[results[i][n]], Collator::LESS);
173 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS);
207 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS);
241 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS);
270 doTest(myCollation, testCases[result
[all...]
H A Dloctest.cpp1590 } testCases[] = { local
1620 for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
1622 Locale l(testCases[i].localeID);
1625 if(status != testCases[i].expectedStatus) {
1627 u_errorName(testCases[i].expectedStatus), u_errorName(status));
1631 if((keyCount = keywords->count(status)) != testCases[i].numKeywords) {
1632 err("Expected to get %i keywords, got %i\n", testCases[i].numKeywords, keyCount);
1640 if(strcmp(keyword, testCases[i].expectedKeywords[j]) != 0) {
1641 err("Expected to get keyword value %s, got %s\n", testCases[
1693 } testCases[] = { local
1723 } testCases[] = { local
1758 } testCases[] = { local
2236 } testCases[] = { local
[all...]
H A Dallcoll.cpp138 doTest(myCollation, testCases[i], testCases[j], Collator::LESS);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
H A DICUResourceBundleCollationTest.java157 boolean truncate, String[] testCases) {
163 for(int i = 0; i < testCases.length ;i+=3) {
164 boolean expectAvail = T_STR.equals(testCases[i+0]);
165 ULocale inLocale = new ULocale(testCases[i+1]);
166 ULocale expectLocale = new ULocale(testCases[i+2]);
156 getFunctionalEquivalentTestCases(String path, ClassLoader cl, String resName, String keyword, boolean truncate, String[] testCases) argument
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/util/
H A DICUResourceBundleCollationTest.java153 boolean truncate, String[] testCases) {
159 for(int i = 0; i < testCases.length ;i+=3) {
160 boolean expectAvail = T_STR.equals(testCases[i+0]);
161 ULocale inLocale = new ULocale(testCases[i+1]);
162 ULocale expectLocale = new ULocale(testCases[i+2]);
152 getFunctionalEquivalentTestCases(String path, ClassLoader cl, String resName, String keyword, boolean truncate, String[] testCases) argument
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
H A DPhoneNumberMatcherTest.java542 List<NumberTest> testCases = new ArrayList<NumberTest>();
543 testCases.addAll(Arrays.asList(STRICT_GROUPING_CASES));
544 testCases.addAll(Arrays.asList(EXACT_GROUPING_CASES));
545 testCases.addAll(Arrays.asList(VALID_CASES));
546 testCases.addAll(Arrays.asList(POSSIBLE_ONLY_CASES));
547 doTestNumberMatchesForLeniency(testCases, Leniency.POSSIBLE);
551 List<NumberTest> testCases = new ArrayList<NumberTest>();
552 testCases.addAll(Arrays.asList(IMPOSSIBLE_CASES));
553 doTestNumberNonMatchesForLeniency(testCases, Leniency.POSSIBLE);
557 List<NumberTest> testCases
601 doTestNumberMatchesForLeniency(List<NumberTest> testCases, Leniency leniency) argument
623 doTestNumberNonMatchesForLeniency(List<NumberTest> testCases, Leniency leniency) argument
[all...]
/external/deqp/execserver/tools/
H A DxsTest.cpp205 void runCases (const std::vector<TestCase*>& testCases);
221 void TestExecutor::runCases (const std::vector<TestCase*>& testCases) argument
224 int numCases = (int)testCases.size();
226 for (std::vector<TestCase*>::const_iterator i = testCases.begin(); i != testCases.end(); i++)
891 std::vector<TestCase*> testCases;
892 testCases.push_back(new ConnectTest(testCtx));
893 testCases.push_back(new HelloTest(testCtx));
894 testCases.push_back(new ExecFailTest(testCtx));
895 testCases
[all...]
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/
H A DUnicodeSetClosure.java103 static final boolean[] testCases = { field in class:UnicodeSetClosure
127 for (int i = 0; i < testCases.length; ++i) {
131 close(test, testModes[j], testCases[i]);

Completed in 835 milliseconds

123