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

1234

/external/protobuf/java/core/src/test/java/com/google/protobuf/
H A DNioByteStringTest.java62 private final ByteString testString = new NioByteString(backingBuffer); field in class:NioByteStringTest
65 String actualClassName = getActualClassName(testString);
78 stillEqual = (BYTES[i] == testString.byteAt(i));
85 ByteString.ByteIterator iter = testString.iterator();
103 for (byte quantum : testString) {
113 testString.size());
117 assertEquals(CLASSNAME + " must have depth 0", 0, testString.getTreeDepth());
121 assertTrue(CLASSNAME + " is technically balanced", testString.isBalanced());
129 testString.copyTo(destination, sourceOffset, destinationOffset, length);
144 testString
[all...]
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);
111 String testString = builder.toString();
114 testString = testString.substring(2, testString
[all...]
H A DBoundedByteStringTest.java63 String testString = "I love unicode \u1234\u5678 characters";
64 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8));
71 testString.substring(2, testString.length() - 6), roundTripString);
76 String testString = "I love unicode \u1234\u5678 characters";
77 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8));
84 testString.substring(2, testString.length() - 6), roundTripString);
H A DRopeByteStringTest.java86 ByteString testString = ByteString.copyFrom(testBytes);
88 concatenated.equals(testString));
90 testString.equals(concatenated));
92 testString.hashCode(), concatenated.hashCode());
108 String testString = builder.toString();
114 testString, roundTripString);
115 ByteString flatString = ByteString.copyFromUtf8(testString);
134 String testString = builder.toString();
140 testString, roundTripString);
141 ByteString flatString = ByteString.copyFromUtf8(testString);
[all...]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
H A DErrorTest.java37 ReplaceableString testString =
49 len = testString.length();
50 stoppedAt = t.transliterate(testString, 0, 100);
53 } else if (testString.length() != len) {
54 testString =
58 stoppedAt = t.transliterate(testString, 100, testString.length() - 1);
61 } else if (testString.length() != len) {
62 testString =
67 pos.limit = testString
[all...]
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
H A DErrorTest.java34 ReplaceableString testString =
46 len = testString.length();
47 stoppedAt = t.transliterate(testString, 0, 100);
50 } else if (testString.length() != len) {
51 testString =
55 stoppedAt = t.transliterate(testString, 100, testString.length() - 1);
58 } else if (testString.length() != len) {
59 testString =
64 pos.limit = testString
[all...]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
H A DRBBIAPITest.java52 String testString = "Testing word break iterators's clone() and equals()";
53 bi1.setText(testString);
54 bi2.setText(testString);
55 biequal.setText(testString);
176 String testString = "This is a word break. Isn't it? 2.25";
178 logln("testing word iterator - string :- \"" + testString + "\"\n");
180 wordIter1.setText(testString);
185 doTest(testString, p, q, 20, "This is a word break");
188 doTest(testString, p, q, 21, ".");
191 doTest(testString,
467 doTest(String testString, int start, int gotoffset, int expectedOffset, String expectedString) argument
[all...]
H A DRBBITestExtended.java101 String testString = testFileBuf.toString();
125 int len = testString.length();
128 int c = testString.codePointAt(charIdx);
130 if (c == '\r' && charIdx<len && testString.charAt(charIdx) == '\n') {
158 if (testString.startsWith("<word>", charIdx-1)) {
163 if (testString.startsWith("<char>", charIdx-1)) {
168 if (testString.startsWith("<line>", charIdx-1)) {
173 if (testString.startsWith("<sent>", charIdx-1)) {
178 if (testString.startsWith("<title>", charIdx-1)) {
183 if (testString
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
H A DRBBIAPITest.java49 String testString = "Testing word break iterators's clone() and equals()";
50 bi1.setText(testString);
51 bi2.setText(testString);
52 biequal.setText(testString);
173 String testString = "This is a word break. Isn't it? 2.25";
175 logln("testing word iterator - string :- \"" + testString + "\"\n");
177 wordIter1.setText(testString);
182 doTest(testString, p, q, 20, "This is a word break");
185 doTest(testString, p, q, 21, ".");
188 doTest(testString,
464 doTest(String testString, int start, int gotoffset, int expectedOffset, String expectedString) argument
[all...]
H A DRBBITestExtended.java98 String testString = testFileBuf.toString();
122 int len = testString.length();
125 int c = testString.codePointAt(charIdx);
127 if (c == '\r' && charIdx<len && testString.charAt(charIdx) == '\n') {
155 if (testString.startsWith("<word>", charIdx-1)) {
160 if (testString.startsWith("<char>", charIdx-1)) {
165 if (testString.startsWith("<line>", charIdx-1)) {
170 if (testString.startsWith("<sent>", charIdx-1)) {
175 if (testString.startsWith("<title>", charIdx-1)) {
180 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/icu/icu4c/source/test/intltest/
H A Dtrnserr.cpp61 UnicodeString testString="A quick fox jumped over the lazy dog."; local
75 len = testString.length();
76 stoppedAt = t->transliterate(testString, 0, 100);
79 } else if (testString.length() != len) {
80 testString="A quick fox jumped over the lazy dog.";
83 stoppedAt = t->transliterate(testString, 100, testString.length()-1);
86 else if (testString.length() != len) {
87 testString="A quick fox jumped over the lazy dog.";
91 pos.limit = testString
[all...]
H A Dcsdetest.h38 void checkEncoding(const UnicodeString &testString,
H A Drbbiapts.h100 void doTest(UnicodeString& testString, int32_t start, int32_t gotoffset, int32_t expectedOffset, const char* expected);
/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;
H A DCharStreamsTest.java136 String testString = "abcdef";
137 Reader reader = new StringReader(testString);
139 assertEquals(testString.charAt(0), reader.read());
141 assertEquals(testString.charAt(2), reader.read());
143 assertEquals(testString.charAt(5), reader.read());
/external/icu/icu4c/source/test/iotest/
H A Dstream.cpp219 testString( argument
221 const char* testString,
231 sstrm << testString; local
233 /*log_verbose("iostream before operator::>>() call \"%s\" ", testString);
238 log_verbose("iostream after operator::>>() call \"%s\" ", testString);
246 log_err("Did not get expected results from \"%s\", expected \"%s\"\n", testString, expectedString);
310 testString(UStr, u_austrcpy(testcase, testCase1), expectedResultA, IOSTREAM_EOF|IOSTREAM_FAIL);
311 testString(UStr, u_austrcpy(testcase, testCase2), expectedResultB, IOSTREAM_EOF);
313 testString(UStr, u_austrcpy(testcase, testCase3), expectedResultC, IOSTREAM_EOF|IOSTREAM_FAIL);
314 testString(USt
[all...]
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
H A DRBBIPerf.java28 String testString; field in class:RBBIPerf
53 testString = testFileBuf.toString();
71 bi.setText(testString);
74 jdkbi.setText(testString);
143 int n=testString.length();
151 int n = testString.length();
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StringReference/
H A DValueTest.java48 protected void checkString(String testString) { argument
49 logWriter.println("=> Test string: \"" + testString + "\"");
52 long stringID = createString(testString);
59 testString, returnedTestString);
/external/chromium-trace/catapult/common/py_utils/py_utils/
H A Dcamel_case_unittest.py12 def testString(self): member in class:CamelCaseTest
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
H A DTestUScriptRun.java340 String testString = "";
349 testString += test[run].runText;
356 scriptRun = new UScriptRun(testString);
359 errln("new UScriptRun(testString) produced an IllegalArgumentException!");
370 scriptRun = new UScriptRun(testString.toCharArray());
373 errln("new UScriptRun(testString.toCharArray()) produced an IllegalArgumentException!");
394 scriptRun.reset(testString, 0, testString.length());
397 errln("scriptRun.reset(testString, 0, testString
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
H A DTestUScriptRun.java337 String testString = "";
346 testString += test[run].runText;
353 scriptRun = new UScriptRun(testString);
356 errln("new UScriptRun(testString) produced an IllegalArgumentException!");
367 scriptRun = new UScriptRun(testString.toCharArray());
370 errln("new UScriptRun(testString.toCharArray()) produced an IllegalArgumentException!");
391 scriptRun.reset(testString, 0, testString.length());
394 errln("scriptRun.reset(testString, 0, testString
[all...]
/external/icu/icu4c/source/samples/citer/
H A Dciter.cpp53 UnicodeString testString(testChars,"");
54 const UChar *testText = testString.getTerminatedBuffer();
120 UnicodeString testString(testChars,"");
121 const UChar *testText = testString.getTerminatedBuffer();
/external/python/cpython2/Lib/test/
H A Dtest_plistlib.py181 testString = "string containing %s" % c
184 plistlib.writePlistToString(testString)
188 testString)
/external/icu/icu4c/source/test/cintltst/
H A Dcustrtst.c480 const UChar testString[] = {0x0061, 0x0062, 0x0063, 0x0064, 0x0064, 0x0061, 0}; local
504 if (u_strpbrk(testString, a) != &testString[0]) {
507 if (u_strpbrk(testString, dc) != &testString[2]) {
510 if (u_strpbrk(testString, cd) != &testString[2]) {
513 if (u_strpbrk(testString, cdh) != &testString[2]) {
516 if (u_strpbrk(testString,
[all...]

Completed in 614 milliseconds

1234