Home
last modified time | relevance | path

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

123456

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DNioByteStringTest.java62 private final ByteString testString = new NioByteString(backingBuffer); field in NioByteStringTest
65 String actualClassName = getActualClassName(testString); in testExpectedType()
78 stillEqual = (BYTES[i] == testString.byteAt(i)); in testByteAt()
85 ByteString.ByteIterator iter = testString.iterator(); in testByteIterator()
103 for (byte quantum : testString) { in testByteIterable()
113 testString.size()); in testSize()
117 assertEquals(CLASSNAME + " must have depth 0", 0, testString.getTreeDepth()); in testGetTreeDepth()
121 assertTrue(CLASSNAME + " is technically balanced", testString.isBalanced()); in testIsBalanced()
129 testString.copyTo(destination, sourceOffset, destinationOffset, length); in testCopyTo_ByteArrayOffsetLength()
144 testString.copyTo(destination, testString.size() + 1 - length, in testCopyTo_ByteArrayOffsetLengthErrors()
[all …]
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()
111 String testString = builder.toString(); in testCharsetToString() local
114 testString = testString.substring(2, testString.length() - 6); in testCharsetToString()
121 testString, roundTripString); in testCharsetToString()
122 ByteString flatString = ByteString.copyFromUtf8(testString); in testCharsetToString()
DBoundedByteStringTest.java63 String testString = "I love unicode \u1234\u5678 characters"; in testToString() local
64 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testToString()
71 testString.substring(2, testString.length() - 6), roundTripString); in testToString()
76 String testString = "I love unicode \u1234\u5678 characters"; in testCharsetToString() local
77 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testCharsetToString()
84 testString.substring(2, testString.length() - 6), roundTripString); in testCharsetToString()
DRopeByteStringTest.java86 ByteString testString = ByteString.copyFrom(testBytes); in testBalance() local
88 concatenated.equals(testString)); in testBalance()
90 testString.equals(concatenated)); in testBalance()
92 testString.hashCode(), concatenated.hashCode()); in testBalance()
108 String testString = builder.toString(); in testToString() local
114 testString, roundTripString); in testToString()
115 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString()
134 String testString = builder.toString(); in testCharsetToString() local
140 testString, roundTripString); in testCharsetToString()
141 ByteString flatString = ByteString.copyFromUtf8(testString); in testCharsetToString()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DRBBIAPITest.java49 String testString = "Testing word break iterators's clone() and equals()"; in TestCloneEquals() local
50 bi1.setText(testString); in TestCloneEquals()
51 bi2.setText(testString); in TestCloneEquals()
52 biequal.setText(testString); in TestCloneEquals()
173 String testString = "This is a word break. Isn't it? 2.25"; in TestFirstNextFollowing() local
175 logln("testing word iterator - string :- \"" + testString + "\"\n"); in TestFirstNextFollowing()
177 wordIter1.setText(testString); in TestFirstNextFollowing()
182 doTest(testString, p, q, 20, "This is a word break"); in TestFirstNextFollowing()
185 doTest(testString, p, q, 21, "."); in TestFirstNextFollowing()
188 doTest(testString, p, q, 28, " Isn't "); in TestFirstNextFollowing()
[all …]
DRBBITestExtended.java98 String testString = testFileBuf.toString(); in TestExtended() local
122 int len = testString.length(); in TestExtended()
125 int c = testString.codePointAt(charIdx); in TestExtended()
127 if (c == '\r' && charIdx<len && testString.charAt(charIdx) == '\n') { in TestExtended()
155 if (testString.startsWith("<word>", charIdx-1)) { in TestExtended()
160 if (testString.startsWith("<char>", charIdx-1)) { in TestExtended()
165 if (testString.startsWith("<line>", charIdx-1)) { in TestExtended()
170 if (testString.startsWith("<sent>", charIdx-1)) { in TestExtended()
175 if (testString.startsWith("<title>", charIdx-1)) { in TestExtended()
180 if (testString.startsWith("<rules>", charIdx-1) || in TestExtended()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DRBBIAPITest.java52 String testString = "Testing word break iterators's clone() and equals()"; in TestCloneEquals() local
53 bi1.setText(testString); in TestCloneEquals()
54 bi2.setText(testString); in TestCloneEquals()
55 biequal.setText(testString); in TestCloneEquals()
176 String testString = "This is a word break. Isn't it? 2.25"; in TestFirstNextFollowing() local
178 logln("testing word iterator - string :- \"" + testString + "\"\n"); in TestFirstNextFollowing()
180 wordIter1.setText(testString); in TestFirstNextFollowing()
185 doTest(testString, p, q, 20, "This is a word break"); in TestFirstNextFollowing()
188 doTest(testString, p, q, 21, "."); in TestFirstNextFollowing()
191 doTest(testString, p, q, 28, " Isn't "); in TestFirstNextFollowing()
[all …]
DRBBITestExtended.java101 String testString = testFileBuf.toString(); in TestExtended() local
125 int len = testString.length(); in TestExtended()
128 int c = testString.codePointAt(charIdx); in TestExtended()
130 if (c == '\r' && charIdx<len && testString.charAt(charIdx) == '\n') { in TestExtended()
158 if (testString.startsWith("<word>", charIdx-1)) { in TestExtended()
163 if (testString.startsWith("<char>", charIdx-1)) { in TestExtended()
168 if (testString.startsWith("<line>", charIdx-1)) { in TestExtended()
173 if (testString.startsWith("<sent>", charIdx-1)) { in TestExtended()
178 if (testString.startsWith("<title>", charIdx-1)) { in TestExtended()
183 if (testString.startsWith("<rules>", charIdx-1) || in TestExtended()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
DErrorTest.java37 ReplaceableString testString = in TestTransliteratorErrors() local
49 len = testString.length(); in TestTransliteratorErrors()
50 stoppedAt = t.transliterate(testString, 0, 100); in TestTransliteratorErrors()
53 } else if (testString.length() != len) { in TestTransliteratorErrors()
54 testString = in TestTransliteratorErrors()
58 stoppedAt = t.transliterate(testString, 100, testString.length() - 1); in TestTransliteratorErrors()
61 } else if (testString.length() != len) { in TestTransliteratorErrors()
62 testString = in TestTransliteratorErrors()
67 pos.limit = testString.length(); in TestTransliteratorErrors()
69 t.transliterate(testString, pos); in TestTransliteratorErrors()
[all …]
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DErrorTest.java34 ReplaceableString testString = in TestTransliteratorErrors() local
46 len = testString.length(); in TestTransliteratorErrors()
47 stoppedAt = t.transliterate(testString, 0, 100); in TestTransliteratorErrors()
50 } else if (testString.length() != len) { in TestTransliteratorErrors()
51 testString = in TestTransliteratorErrors()
55 stoppedAt = t.transliterate(testString, 100, testString.length() - 1); in TestTransliteratorErrors()
58 } else if (testString.length() != len) { in TestTransliteratorErrors()
59 testString = in TestTransliteratorErrors()
64 pos.limit = testString.length(); in TestTransliteratorErrors()
66 t.transliterate(testString, pos); in TestTransliteratorErrors()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtrnserr.cpp61 UnicodeString testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors() local
75 len = testString.length(); in TestTransliteratorErrors()
76 stoppedAt = t->transliterate(testString, 0, 100); in TestTransliteratorErrors()
79 } else if (testString.length() != len) { in TestTransliteratorErrors()
80 testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors()
83 stoppedAt = t->transliterate(testString, 100, testString.length()-1); in TestTransliteratorErrors()
86 else if (testString.length() != len) { in TestTransliteratorErrors()
87 testString="A quick fox jumped over the lazy dog."; in TestTransliteratorErrors()
91 pos.limit = testString.length(); in TestTransliteratorErrors()
92 t->transliterate(testString, pos, status); in TestTransliteratorErrors()
[all …]
Drbbitst.cpp258 UnicodeString testString("boo."); in TestEndBehaviour() local
265 wb->setText(testString); in TestEndBehaviour()
718 UnicodeString testString(FALSE, testFile, len); in TestExtended() local
743 UChar c = testString.charAt(charIdx); in TestExtended()
745 if (c == u'\r' && charIdx<len && testString.charAt(charIdx) == u'\n') { in TestExtended()
773 if (testString.compare(charIdx-1, 6, u"<word>") == 0) { in TestExtended()
780 if (testString.compare(charIdx-1, 6, u"<char>") == 0) { in TestExtended()
787 if (testString.compare(charIdx-1, 6, u"<line>") == 0) { in TestExtended()
794 if (testString.compare(charIdx-1, 6, u"<sent>") == 0) { in TestExtended()
801 if (testString.compare(charIdx-1, 7, u"<title>") == 0) { in TestExtended()
[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/icu/icu4c/source/test/iotest/
Dstream.cpp219 testString( in testString() function
221 const char* testString, in testString() argument
231 sstrm << testString; in testString()
238 log_verbose("iostream after operator::>>() call \"%s\" ", testString); in testString()
246 …log_err("Did not get expected results from \"%s\", expected \"%s\"\n", testString, expectedString); in testString()
310 testString(UStr, u_austrcpy(testcase, testCase1), expectedResultA, IOSTREAM_EOF|IOSTREAM_FAIL); in TestStreamEOF()
311 testString(UStr, u_austrcpy(testcase, testCase2), expectedResultB, IOSTREAM_EOF); in TestStreamEOF()
313 testString(UStr, u_austrcpy(testcase, testCase3), expectedResultC, IOSTREAM_EOF|IOSTREAM_FAIL); in TestStreamEOF()
314 testString(UStr, u_austrcpy(testcase, testCase4), expectedResultD, IOSTREAM_EOF); in TestStreamEOF()
315 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DTestUScriptRun.java337 String testString = ""; in TestRuns() local
346 testString += test[run].runText; in TestRuns()
353 scriptRun = new UScriptRun(testString); in TestRuns()
367 scriptRun = new UScriptRun(testString.toCharArray()); in TestRuns()
391 scriptRun.reset(testString, 0, testString.length()); in TestRuns()
398 scriptRun.reset(testString.toCharArray(), 0, testString.length()); in TestRuns()
404 String paddedTestString = padding + testString + padding; in TestRuns()
406 int count = testString.length(); in TestRuns()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DTestUScriptRun.java340 String testString = ""; in TestRuns() local
349 testString += test[run].runText; in TestRuns()
356 scriptRun = new UScriptRun(testString); in TestRuns()
370 scriptRun = new UScriptRun(testString.toCharArray()); in TestRuns()
394 scriptRun.reset(testString, 0, testString.length()); in TestRuns()
401 scriptRun.reset(testString.toCharArray(), 0, testString.length()); in TestRuns()
407 String paddedTestString = padding + testString + padding; in TestRuns()
409 int count = testString.length(); in TestRuns()
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
DRBBIPerf.java28 String testString; field in RBBIPerf
53 testString = testFileBuf.toString(); in setup()
71 bi.setText(testString); in setup()
74 jdkbi.setText(testString); in setup()
143 int n=testString.length();
151 int n = testString.length();
/external/icu/icu4c/source/test/cintltst/
Dcustrtst.c480 const UChar testString[] = {0x0061, 0x0062, 0x0063, 0x0064, 0x0064, 0x0061, 0}; in TestStringSearching() local
504 if (u_strpbrk(testString, a) != &testString[0]) { in TestStringSearching()
507 if (u_strpbrk(testString, dc) != &testString[2]) { in TestStringSearching()
510 if (u_strpbrk(testString, cd) != &testString[2]) { in TestStringSearching()
513 if (u_strpbrk(testString, cdh) != &testString[2]) { in TestStringSearching()
516 if (u_strpbrk(testString, f) != NULL) { in TestStringSearching()
519 if (u_strpbrk(testString, fg) != NULL) { in TestStringSearching()
522 if (u_strpbrk(testString, gf) != NULL) { in TestStringSearching()
525 if (u_strpbrk(testString, empty) != NULL) { in TestStringSearching()
570 if (u_strcspn(testString, a) != 0) { in TestStringSearching()
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestStringByteConverter.java32 String testString = "Mauritania"; in main() local
33 for (int i = 0; i < testString.length(); ++i) { in main()
34 testInt(testString.charAt(i)); in main()
67 testString(test); in main()
82 private static void testString(String test) throws IOException { in testString() method in TestStringByteConverter
84 testString(test, type); in testString()
106 testString(value, type); in testWithLocale()
115 private static void testString(String test, Type type) throws IOException { in testString() method in TestStringByteConverter
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StringReference/
DValueTest.java49 protected void checkString(String testString) { in checkString() argument
50 logWriter.println("=> Test string: \"" + testString + "\""); in checkString()
53 long stringID = createString(testString); in checkString()
60 testString, returnedTestString); in checkString()
/external/icu/icu4c/source/samples/citer/
Dciter.cpp58 UnicodeString testString(testChars,""); in TestUChariter() local
59 const UChar *testText = testString.getTerminatedBuffer(); in TestUChariter()
125 UnicodeString testString(testChars,""); in TestStringiter() local
126 const UChar *testText = testString.getTerminatedBuffer(); in TestStringiter()
/external/tinyxml2/
Dxmltest.cpp30 bool XMLTest (const char* testString, const char* expected, const char* found, bool echo=true, bool… in XMLTest() argument
45 printf (" %s\n", testString); in XMLTest()
49 printf( " %s\n", testString ); in XMLTest()
54 printf (" %s [%s][%s]\n", testString, expected, found); in XMLTest()
65 bool XMLTest(const char* testString, XMLError expected, XMLError found, bool echo = true, bool extr… in XMLTest() argument
67 …return XMLTest(testString, XMLDocument::ErrorIDToName(expected), XMLDocument::ErrorIDToName(found)… in XMLTest()
70 bool XMLTest(const char* testString, bool expected, bool found, bool echo = true, bool extraNL = fa… in XMLTest() argument
72 … return XMLTest(testString, expected ? "true" : "false", found ? "true" : "false", echo, extraNL); in XMLTest()
75 template< class T > bool XMLTest( const char* testString, T expected, T found, bool echo=true ) in XMLTest() argument
84 printf (" %s\n", testString); in XMLTest()
[all …]
/external/shflags/test_results/1.0.2/
DLinux-Ubuntu-8.04.txt27 testString
88 testString
149 testString
210 testString
271 testString
332 testString

123456