Searched refs:testString (Results 1 - 25 of 74) sorted by relevance

123

/external/skia/tests/
H A DDiscardableMemoryTest.cpp13 const char testString[] = "HELLO, WORLD!"; local
14 const size_t len = sizeof(testString);
22 memcpy(ptr, testString, sizeof(testString));
30 REPORTER_ASSERT(reporter, 0 == memcmp(ptr, testString, len));
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
H A DErrorTest.java33 ReplaceableString testString =
45 len = testString.length();
46 stoppedAt = t.transliterate(testString, 0, 100);
49 } else if (testString.length() != len) {
50 testString =
54 stoppedAt = t.transliterate(testString, 100, testString.length() - 1);
57 } else if (testString.length() != len) {
58 testString =
63 pos.limit = testString
[all...]
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
H A DErrorTest.java29 ReplaceableString testString =
41 len = testString.length();
42 stoppedAt = t.transliterate(testString, 0, 100);
45 } else if (testString.length() != len) {
46 testString =
50 stoppedAt = t.transliterate(testString, 100, testString.length() - 1);
53 } else if (testString.length() != len) {
54 testString =
59 pos.limit = testString
[all...]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
H A DRBBIAPITest.java45 String testString = "Testing word break iterators's clone() and equals()";
46 bi1.setText(testString);
47 bi2.setText(testString);
48 biequal.setText(testString);
168 String testString = "This is a word break. Isn't it? 2.25";
170 logln("testing word iterator - string :- \"" + testString + "\"\n");
172 wordIter1.setText(testString);
177 doTest(testString, p, q, 20, "This is a word break");
180 doTest(testString, p, q, 21, ".");
183 doTest(testString,
444 doTest(String testString, int start, int gotoffset, int expectedOffset, String expectedString) argument
[all...]
H A DRBBITestExtended.java100 String testString = testFileBuf.toString();
128 int len = testString.length();
131 int c = UTF16.charAt(testString, charIdx);
133 if (c == CH_CR && charIdx<len && testString.charAt(charIdx) == CH_LF) {
161 if (testString.startsWith("<word>", charIdx-1)) {
166 if (testString.startsWith("<char>", charIdx-1)) {
171 if (testString.startsWith("<line>", charIdx-1)) {
176 if (testString.startsWith("<sent>", charIdx-1)) {
181 if (testString.startsWith("<title>", charIdx-1)) {
186 if (testString
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
H A DRBBIAPITest.java41 String testString = "Testing word break iterators's clone() and equals()";
42 bi1.setText(testString);
43 bi2.setText(testString);
44 biequal.setText(testString);
164 String testString = "This is a word break. Isn't it? 2.25";
166 logln("testing word iterator - string :- \"" + testString + "\"\n");
168 wordIter1.setText(testString);
173 doTest(testString, p, q, 20, "This is a word break");
176 doTest(testString, p, q, 21, ".");
179 doTest(testString,
440 doTest(String testString, int start, int gotoffset, int expectedOffset, String expectedString) argument
[all...]
H A DRBBITestExtended.java96 String testString = testFileBuf.toString();
124 int len = testString.length();
127 int c = UTF16.charAt(testString, charIdx);
129 if (c == CH_CR && charIdx<len && testString.charAt(charIdx) == CH_LF) {
157 if (testString.startsWith("<word>", charIdx-1)) {
162 if (testString.startsWith("<char>", charIdx-1)) {
167 if (testString.startsWith("<line>", charIdx-1)) {
172 if (testString.startsWith("<sent>", charIdx-1)) {
177 if (testString.startsWith("<title>", charIdx-1)) {
182 if (testString
[all...]
/external/guava/guava-tests/benchmark/com/google/common/base/
H A DAsciiBenchmark.java47 String testString; field in class:AsciiBenchmark
64 this.testString = new String(array);
77 ? Ascii.toUpperCase(testString)
78 : testString;
89 ? charSequenceToUpperCase(testString)
90 : testString;
101 ? testString.toUpperCase(Locale.US)
102 : testString;
113 String upperString = testString.toUpperCase();
114 CharSequence testSeq = new StringBuilder(testString);
[all...]
/external/protobuf/java/src/test/java/com/google/protobuf/
H A DBoundedByteStringTest.java58 String testString = "I love unicode \u1234\u5678 characters";
59 LiteralByteString unicode = new LiteralByteString(testString.getBytes(UTF_8));
66 testString.substring(2, testString.length() - 6), roundTripString);
H A DRopeByteStringSubstringTest.java81 String testString = builder.toString();
84 testString = testString.substring(2, testString.length() - 6);
91 testString, roundTripString);
92 ByteString flatString = ByteString.copyFromUtf8(testString);
H A DRopeByteStringTest.java81 ByteString testString = ByteString.copyFrom(testBytes);
83 concatenated.equals(testString));
85 testString.equals(concatenated));
87 testString.hashCode(), concatenated.hashCode());
103 String testString = builder.toString();
109 testString, roundTripString);
110 ByteString flatString = ByteString.copyFromUtf8(testString);
/external/icu/icu4c/source/test/intltest/
H A Dtrnserr.cpp59 UnicodeString testString="A quick fox jumped over the lazy dog."; local
73 len = testString.length();
74 stoppedAt = t->transliterate(testString, 0, 100);
77 } else if (testString.length() != len) {
78 testString="A quick fox jumped over the lazy dog.";
81 stoppedAt = t->transliterate(testString, 100, testString.length()-1);
84 else if (testString.length() != len) {
85 testString="A quick fox jumped over the lazy dog.";
89 pos.limit = testString
[all...]
H A Dcsdetest.h36 void checkEncoding(const UnicodeString &testString,
/external/v8/test/webkit/
H A 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
77 shouldBe("trimString.trim()", "testString");
81 shouldBe("leftTrimString.trim()", "testString");
83 shouldBe("leftTrimString.trimRight()", "testString");
85 shouldBe("rightTrimString.trim()", "testString");
86 shouldBe("rightTrimString.trimLeft()", "testString");
/external/guava/guava-tests/test/com/google/common/io/
H A DMultiReaderTest.java34 String testString = "abcdefgh";
35 final CharSource source = newCharSource(testString);
53 assertEquals(testString.length() * 3, result.length());
69 String testString = "abcdefgh";
70 CharSource source = newCharSource(testString);
73 String expectedString = testString + testString;
/external/v8/test/mjsunit/regress/
H A Dregress-latin-1.js83 var testString = "\xdc";
86 testString += testString;
88 var stringified = JSON.stringify({"test" : testString}, null, 0);
89 var stringifiedExpected = '{"test":"' + testString + '"}';
/external/v8/test/mjsunit/
H A Dvalue-callic-prototype-change.js31 function testString() { function
50 testString();
/external/icu/icu4c/source/test/iotest/
H A Dstream.cpp217 testString( argument
219 const char* testString,
229 sstrm << testString; local
231 /*log_verbose("iostream before operator::>>() call \"%s\" ", testString);
236 log_verbose("iostream after operator::>>() call \"%s\" ", testString);
244 log_err("Did not get expected results from \"%s\", expected \"%s\"\n", testString, expectedString);
308 testString(UStr, u_austrcpy(testcase, testCase1), expectedResultA, IOSTREAM_EOF|IOSTREAM_FAIL);
309 testString(UStr, u_austrcpy(testcase, testCase2), expectedResultB, IOSTREAM_EOF);
311 testString(UStr, u_austrcpy(testcase, testCase3), expectedResultC, IOSTREAM_EOF|IOSTREAM_FAIL);
312 testString(USt
[all...]
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
H A DRBBIPerf.java26 String testString; field in class:RBBIPerf
51 testString = testFileBuf.toString();
69 bi.setText(testString);
72 jdkbi.setText(testString);
141 int n=testString.length();
149 int n = testString.length();
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StringReference/
H A DValueTest.java49 protected void checkString(String testString) throws UnsupportedEncodingException { argument
50 logWriter.println("=> Test string: \"" + testString + "\"");
53 long stringID = createString(testString);
60 testString, returnedTestString);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
H A DTestUScriptRun.java335 String testString = "";
344 testString += test[run].runText;
351 scriptRun = new UScriptRun(testString);
354 errln("new UScriptRun(testString) produced an IllegalArgumentException!");
365 scriptRun = new UScriptRun(testString.toCharArray());
368 errln("new UScriptRun(testString.toCharArray()) produced an IllegalArgumentException!");
389 scriptRun.reset(testString, 0, testString.length());
392 errln("scriptRun.reset(testString, 0, testString
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
H A DTestUScriptRun.java331 String testString = "";
340 testString += test[run].runText;
347 scriptRun = new UScriptRun(testString);
350 errln("new UScriptRun(testString) produced an IllegalArgumentException!");
361 scriptRun = new UScriptRun(testString.toCharArray());
364 errln("new UScriptRun(testString.toCharArray()) produced an IllegalArgumentException!");
385 scriptRun.reset(testString, 0, testString.length());
388 errln("scriptRun.reset(testString, 0, testString
[all...]
/external/v8/test/cctest/compiler/
H A Dtest-run-stubs.cc60 const char* testString = "Und das Lamm schrie HURZ!"; local
62 Object::ToObject(isolate, ft.Val(testString)).ToHandleChecked();
68 CHECK_EQ(static_cast<int>(strlen(testString)), Smi::cast(*result)->value());
/external/chromium-trace/catapult/telemetry/telemetry/internal/util/
H A Dcamel_case_unittest.py12 def testString(self): member in class:CamelCaseTest
/external/icu/icu4c/source/samples/citer/
H A Dciter.cpp47 UnicodeString testString(testChars,"");
48 const UChar *testText = testString.getTerminatedBuffer();
114 UnicodeString testString(testChars,"");
115 const UChar *testText = testString.getTerminatedBuffer();

Completed in 1304 milliseconds

123