Home
last modified time | relevance | path

Searched refs:testString (Results 1 – 25 of 99) sorted by relevance

1234

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DRBBIAPITest.java41 String testString = "Testing word break iterators's clone() and equals()"; in TestCloneEquals() local
42 bi1.setText(testString); in TestCloneEquals()
43 bi2.setText(testString); in TestCloneEquals()
44 biequal.setText(testString); in TestCloneEquals()
164 String testString = "This is a word break. Isn't it? 2.25"; in TestFirstNextFollowing() local
166 logln("testing word iterator - string :- \"" + testString + "\"\n"); in TestFirstNextFollowing()
168 wordIter1.setText(testString); in TestFirstNextFollowing()
173 doTest(testString, p, q, 20, "This is a word break"); in TestFirstNextFollowing()
176 doTest(testString, p, q, 21, "."); in TestFirstNextFollowing()
179 doTest(testString, p, q, 28, " Isn't "); in TestFirstNextFollowing()
[all …]
DRBBITestExtended.java96 String testString = testFileBuf.toString(); in TestExtended() local
124 int len = testString.length(); in TestExtended()
127 int c = UTF16.charAt(testString, charIdx); in TestExtended()
129 if (c == CH_CR && charIdx<len && testString.charAt(charIdx) == CH_LF) { in TestExtended()
157 if (testString.startsWith("<word>", charIdx-1)) { in TestExtended()
162 if (testString.startsWith("<char>", charIdx-1)) { in TestExtended()
167 if (testString.startsWith("<line>", charIdx-1)) { in TestExtended()
172 if (testString.startsWith("<sent>", charIdx-1)) { in TestExtended()
177 if (testString.startsWith("<title>", charIdx-1)) { in TestExtended()
182 if (testString.startsWith("<locale ", charIdx-1)) { in TestExtended()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DRBBIAPITest.java45 String testString = "Testing word break iterators's clone() and equals()"; in TestCloneEquals() local
46 bi1.setText(testString); in TestCloneEquals()
47 bi2.setText(testString); in TestCloneEquals()
48 biequal.setText(testString); in TestCloneEquals()
168 String testString = "This is a word break. Isn't it? 2.25"; in TestFirstNextFollowing() local
170 logln("testing word iterator - string :- \"" + testString + "\"\n"); in TestFirstNextFollowing()
172 wordIter1.setText(testString); in TestFirstNextFollowing()
177 doTest(testString, p, q, 20, "This is a word break"); in TestFirstNextFollowing()
180 doTest(testString, p, q, 21, "."); in TestFirstNextFollowing()
183 doTest(testString, p, q, 28, " Isn't "); in TestFirstNextFollowing()
[all …]
DRBBITestExtended.java100 String testString = testFileBuf.toString(); in TestExtended() local
128 int len = testString.length(); in TestExtended()
131 int c = UTF16.charAt(testString, charIdx); in TestExtended()
133 if (c == CH_CR && charIdx<len && testString.charAt(charIdx) == CH_LF) { in TestExtended()
161 if (testString.startsWith("<word>", charIdx-1)) { in TestExtended()
166 if (testString.startsWith("<char>", charIdx-1)) { in TestExtended()
171 if (testString.startsWith("<line>", charIdx-1)) { in TestExtended()
176 if (testString.startsWith("<sent>", charIdx-1)) { in TestExtended()
181 if (testString.startsWith("<title>", charIdx-1)) { in TestExtended()
186 if (testString.startsWith("<locale ", charIdx-1)) { in TestExtended()
[all …]
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DErrorTest.java29 ReplaceableString testString = in TestTransliteratorErrors() local
41 len = testString.length(); in TestTransliteratorErrors()
42 stoppedAt = t.transliterate(testString, 0, 100); in TestTransliteratorErrors()
45 } else if (testString.length() != len) { in TestTransliteratorErrors()
46 testString = in TestTransliteratorErrors()
50 stoppedAt = t.transliterate(testString, 100, testString.length() - 1); in TestTransliteratorErrors()
53 } else if (testString.length() != len) { in TestTransliteratorErrors()
54 testString = in TestTransliteratorErrors()
59 pos.limit = testString.length(); in TestTransliteratorErrors()
61 t.transliterate(testString, pos); in TestTransliteratorErrors()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
DErrorTest.java33 ReplaceableString testString = in TestTransliteratorErrors() local
45 len = testString.length(); in TestTransliteratorErrors()
46 stoppedAt = t.transliterate(testString, 0, 100); in TestTransliteratorErrors()
49 } else if (testString.length() != len) { in TestTransliteratorErrors()
50 testString = in TestTransliteratorErrors()
54 stoppedAt = t.transliterate(testString, 100, testString.length() - 1); in TestTransliteratorErrors()
57 } else if (testString.length() != len) { in TestTransliteratorErrors()
58 testString = in TestTransliteratorErrors()
63 pos.limit = testString.length(); in TestTransliteratorErrors()
65 t.transliterate(testString, pos); in TestTransliteratorErrors()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtrnserr.cpp59 UnicodeString testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors() local
73 len = testString.length(); in TestTransliteratorErrors()
74 stoppedAt = t->transliterate(testString, 0, 100); in TestTransliteratorErrors()
77 } else if (testString.length() != len) { in TestTransliteratorErrors()
78 testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors()
81 stoppedAt = t->transliterate(testString, 100, testString.length()-1); in TestTransliteratorErrors()
84 else if (testString.length() != len) { in TestTransliteratorErrors()
85 testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors()
89 pos.limit = testString.length(); in TestTransliteratorErrors()
90 t->transliterate(testString, pos, status); in TestTransliteratorErrors()
[all …]
Ditspoof.cpp514 UnicodeString testString(test.fTestString); // Note: may do charset conversion. in testIdentifierInfo() local
515 testString = testString.unescape(); in testIdentifierInfo()
519 idInfo.setIdentifier(testString, status); in testIdentifierInfo()
520 TEST_ASSERT_MSG(*idInfo.getIdentifier() == testString, testNumStr); in testIdentifierInfo()
577 UnicodeString testString = UnicodeString(test.fTestString).unescape(); in testIdentifierInfo() local
580 identifierInfo.setIdentifier(testString, status); in testIdentifierInfo()
692 UnicodeString testString = UnicodeString(test.fId).unescape(); in testRestrictionLevel() local
694 idInfo.setIdentifier(testString, status); in testRestrictionLevel()
705 int32_t actualValue = uspoof_checkUnicodeString(sc, testString, NULL, &status); in testRestrictionLevel()
712 if (!uspoof_getRecommendedUnicodeSet(&status)->containsAll(testString)) { in testRestrictionLevel()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/base/
DAsciiBenchmark.java47 String testString; field in AsciiBenchmark
64 this.testString = new String(array); in setUp()
77 ? Ascii.toUpperCase(testString) in asciiStringToUpperCase()
78 : testString; in asciiStringToUpperCase()
89 ? charSequenceToUpperCase(testString) in asciiCharSequenceToUpperCase()
90 : testString; in asciiCharSequenceToUpperCase()
101 ? testString.toUpperCase(Locale.US) in stringToUpperCase()
102 : testString; in stringToUpperCase()
113 String upperString = testString.toUpperCase(); in equalsIgnoreCaseCharSequence()
114 CharSequence testSeq = new StringBuilder(testString); in equalsIgnoreCaseCharSequence()
[all …]
/external/skia/tests/
DDiscardableMemoryTest.cpp13 const char testString[] = "HELLO, WORLD!"; in DEF_TEST() local
14 const size_t len = sizeof(testString); in DEF_TEST()
22 memcpy(ptr, testString, sizeof(testString)); in DEF_TEST()
30 REPORTER_ASSERT(reporter, 0 == memcmp(ptr, testString, len)); in DEF_TEST()
/external/protobuf/java/src/test/java/com/google/protobuf/
DRopeByteStringTest.java81 ByteString testString = ByteString.copyFrom(testBytes); in testBalance() local
83 concatenated.equals(testString)); in testBalance()
85 testString.equals(concatenated)); in testBalance()
87 testString.hashCode(), concatenated.hashCode()); in testBalance()
103 String testString = builder.toString(); in testToString() local
109 testString, roundTripString); in testToString()
110 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString()
DRopeByteStringSubstringTest.java81 String testString = builder.toString(); in testToString() local
84 testString = testString.substring(2, testString.length() - 6); in testToString()
91 testString, roundTripString); in testToString()
92 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString()
DBoundedByteStringTest.java58 String testString = "I love unicode \u1234\u5678 characters"; in testToString() local
59 LiteralByteString unicode = new LiteralByteString(testString.getBytes(UTF_8)); in testToString()
66 testString.substring(2, testString.length() - 6), roundTripString); in testToString()
/external/icu/icu4c/source/test/iotest/
Dstream.cpp217 testString( in testString() function
219 const char* testString, in testString() argument
229 sstrm << testString; in testString()
236 log_verbose("iostream after operator::>>() call \"%s\" ", testString); in testString()
244 …log_err("Did not get expected results from \"%s\", expected \"%s\"\n", testString, expectedString); in testString()
308 testString(UStr, u_austrcpy(testcase, testCase1), expectedResultA, IOSTREAM_EOF|IOSTREAM_FAIL); in TestStreamEOF()
309 testString(UStr, u_austrcpy(testcase, testCase2), expectedResultB, IOSTREAM_EOF); in TestStreamEOF()
311 testString(UStr, u_austrcpy(testcase, testCase3), expectedResultC, IOSTREAM_EOF|IOSTREAM_FAIL); in TestStreamEOF()
312 testString(UStr, u_austrcpy(testcase, testCase4), expectedResultD, IOSTREAM_EOF); in TestStreamEOF()
313 testString(UStr, u_austrcpy(testcase, testCase5), expectedResultD, IOSTREAM_GOOD); in TestStreamEOF()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DMultiReaderTest.java34 String testString = "abcdefgh"; in testOnlyOneOpen() local
35 final CharSource source = newCharSource(testString); in testOnlyOneOpen()
53 assertEquals(testString.length() * 3, result.length()); in testOnlyOneOpen()
69 String testString = "abcdefgh"; in testSimple() local
70 CharSource source = newCharSource(testString); in testSimple()
73 String expectedString = testString + testString; in testSimple()
DCharStreamsTest.java136 String testString = "abcdef"; in testSkipFully() local
137 Reader reader = new StringReader(testString); in testSkipFully()
139 assertEquals(testString.charAt(0), reader.read()); in testSkipFully()
141 assertEquals(testString.charAt(2), reader.read()); in testSkipFully()
143 assertEquals(testString.charAt(5), reader.read()); in testSkipFully()
/external/v8/test/mjsunit/regress/
Dregress-latin-1.js83 var testString = "\xdc"; variable
86 testString += testString;
88 var stringified = JSON.stringify({"test" : testString}, null, 0);
89 var stringifiedExpected = '{"test":"' + testString + '"}';
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DTestUScriptRun.java331 String testString = ""; in TestRuns() local
340 testString += test[run].runText; in TestRuns()
347 scriptRun = new UScriptRun(testString); in TestRuns()
361 scriptRun = new UScriptRun(testString.toCharArray()); in TestRuns()
385 scriptRun.reset(testString, 0, testString.length()); in TestRuns()
392 scriptRun.reset(testString.toCharArray(), 0, testString.length()); in TestRuns()
398 String paddedTestString = padding + testString + padding; in TestRuns()
400 int count = testString.length(); in TestRuns()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DTestUScriptRun.java335 String testString = ""; in TestRuns() local
344 testString += test[run].runText; in TestRuns()
351 scriptRun = new UScriptRun(testString); in TestRuns()
365 scriptRun = new UScriptRun(testString.toCharArray()); in TestRuns()
389 scriptRun.reset(testString, 0, testString.length()); in TestRuns()
396 scriptRun.reset(testString.toCharArray(), 0, testString.length()); in TestRuns()
402 String paddedTestString = padding + testString + padding; in TestRuns()
404 int count = testString.length(); in TestRuns()
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
DRBBIPerf.java26 String testString; field in RBBIPerf
51 testString = testFileBuf.toString(); in setup()
69 bi.setText(testString); in setup()
72 jdkbi.setText(testString); in setup()
141 int n=testString.length();
149 int n = testString.length();
/external/v8/test/webkit/
Dstring-trim.js31 var testString = 'foo bar'; variable
69 trimString = wsString + testString + wsString;
70 leftTrimString = testString + wsString; //trimmed from the left
71 rightTrimString = wsString + testString; //trimmed from the right
/external/icu/icu4c/source/test/cintltst/
Dcustrtst.c478 const UChar testString[] = {0x0061, 0x0062, 0x0063, 0x0064, 0x0064, 0x0061, 0}; in TestStringSearching() local
502 if (u_strpbrk(testString, a) != &testString[0]) { in TestStringSearching()
505 if (u_strpbrk(testString, dc) != &testString[2]) { in TestStringSearching()
508 if (u_strpbrk(testString, cd) != &testString[2]) { in TestStringSearching()
511 if (u_strpbrk(testString, cdh) != &testString[2]) { in TestStringSearching()
514 if (u_strpbrk(testString, f) != NULL) { in TestStringSearching()
517 if (u_strpbrk(testString, fg) != NULL) { in TestStringSearching()
520 if (u_strpbrk(testString, gf) != NULL) { in TestStringSearching()
523 if (u_strpbrk(testString, empty) != NULL) { in TestStringSearching()
568 if (u_strcspn(testString, a) != 0) { in TestStringSearching()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/text/
DSpoofCheckerTest.java515 String testString = (String) test[0]; in TestRestrictionLevel() local
517 idInfo.setIdentifier(testString); in TestRestrictionLevel()
518 …assertEquals("Testing restriction level for '" + testString + "'", expectedLevel, idInfo.getRestri… in TestRestrictionLevel()
525 boolean actualValue = sc.failsChecks(testString, checkResult); in TestRestrictionLevel()
528 …edLevel.compareTo(levelSetInSpoofChecker) > 0 || !SpoofChecker.RECOMMENDED.containsAll(testString); in TestRestrictionLevel()
529 …boolean t = assertEquals("Testing spoof restriction level for '" + testString + "', " + levelSetIn… in TestRestrictionLevel()
531 actualValue = sc.failsChecks(testString, checkResult); in TestRestrictionLevel()
533 …edLevel.compareTo(levelSetInSpoofChecker) > 0 || !SpoofChecker.RECOMMENDED.containsAll(testString); in TestRestrictionLevel()
549 String testString = (String) test[0]; in TestMixedNumbers() local
551 idInfo.setIdentifier(testString); in TestMixedNumbers()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/text/
DSpoofCheckerTest.java519 String testString = (String) test[0]; in TestRestrictionLevel() local
521 idInfo.setIdentifier(testString); in TestRestrictionLevel()
522 …assertEquals("Testing restriction level for '" + testString + "'", expectedLevel, idInfo.getRestri… in TestRestrictionLevel()
529 boolean actualValue = sc.failsChecks(testString, checkResult); in TestRestrictionLevel()
532 …edLevel.compareTo(levelSetInSpoofChecker) > 0 || !SpoofChecker.RECOMMENDED.containsAll(testString); in TestRestrictionLevel()
533 …boolean t = assertEquals("Testing spoof restriction level for '" + testString + "', " + levelSetIn… in TestRestrictionLevel()
535 actualValue = sc.failsChecks(testString, checkResult); in TestRestrictionLevel()
537 …edLevel.compareTo(levelSetInSpoofChecker) > 0 || !SpoofChecker.RECOMMENDED.containsAll(testString); in TestRestrictionLevel()
553 String testString = (String) test[0]; in TestMixedNumbers() local
555 idInfo.setIdentifier(testString); in TestMixedNumbers()
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StringReference/
DValueTest.java49 protected void checkString(String testString) throws UnsupportedEncodingException { in checkString() argument
50 logWriter.println("=> Test string: \"" + testString + "\""); in checkString()
53 long stringID = createString(testString); in checkString()
60 testString, returnedTestString); in checkString()

1234