Home
last modified time | relevance | path

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

12345

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DNioByteStringTest.java59 private final ByteString testString = new NioByteString(backingBuffer); field in NioByteStringTest
62 String actualClassName = getActualClassName(testString); in testExpectedType()
75 stillEqual = (BYTES[i] == testString.byteAt(i)); in testByteAt()
82 ByteString.ByteIterator iter = testString.iterator(); in testByteIterator()
100 for (byte quantum : testString) { in testByteIterable()
109 assertEquals(CLASSNAME + " must have the expected size", BYTES.length, testString.size()); in testSize()
113 assertEquals(CLASSNAME + " must have depth 0", 0, testString.getTreeDepth()); in testGetTreeDepth()
117 assertTrue(CLASSNAME + " is technically balanced", testString.isBalanced()); in testIsBalanced()
125 testString.copyTo(destination, sourceOffset, destinationOffset, length); in testCopyTo_ByteArrayOffsetLength()
140 testString.copyTo(destination, testString.size() + 1 - length, destinationOffset, length); in testCopyTo_ByteArrayOffsetLengthErrors()
[all …]
DRopeByteStringSubstringTest.java81 String testString = builder.toString(); in testToString() local
84 testString = testString.substring(2, testString.length() - 6); in testToString()
92 assertEquals(classUnderTest + " unicode bytes must match", testString, roundTripString); in testToString()
93 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString()
114 String testString = builder.toString(); in testCharsetToString() local
117 testString = testString.substring(2, testString.length() - 6); in testCharsetToString()
125 assertEquals(classUnderTest + " unicode bytes must match", testString, roundTripString); in testCharsetToString()
126 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()
74 testString.substring(2, testString.length() - 6), in testToString()
80 String testString = "I love unicode \u1234\u5678 characters"; in testCharsetToString() local
81 ByteString unicode = ByteString.wrap(testString.getBytes(Internal.UTF_8)); in testCharsetToString()
91 testString.substring(2, testString.length() - 6), in testCharsetToString()
DRopeByteStringTest.java104 ByteString testString = ByteString.copyFrom(testBytes); in testBalance() local
106 classUnderTest + " balanced string must equal flat string", testString, concatenated); in testBalance()
108 classUnderTest + " flat string must equal balanced string", concatenated, testString); in testBalance()
111 testString.hashCode(), in testBalance()
128 String testString = builder.toString(); in testToString() local
135 assertEquals(classUnderTest + " unicode bytes must match", testString, roundTripString); in testToString()
136 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString()
157 String testString = builder.toString(); in testCharsetToString() local
164 assertEquals(classUnderTest + " unicode bytes must match", testString, roundTripString); in testCharsetToString()
165 ByteString flatString = ByteString.copyFromUtf8(testString); in testCharsetToString()
/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/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/angle/src/libANGLE/renderer/gl/
DDisplayGL_unittest.cpp26 std::string testString = "Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)"; in TEST() local
28 EXPECT_EQ(SanitizeRendererString(testString), testExpectation); in TEST()
33 std::string testString = "llvmpipe (LLVM 11.0.0, 256 bits)"; in TEST() local
35 EXPECT_EQ(SanitizeRendererString(testString), testExpectation); in TEST()
40 std::string testString = "Radeon RX Vega"; in TEST() local
42 EXPECT_EQ(SanitizeRendererString(testString), testExpectation); in TEST()
47 std::string testString = in TEST() local
50 EXPECT_EQ(SanitizeRendererString(testString), testExpectation); in TEST()
55 std::string testString = "AMD Radeon RX 5700 (DRM 3.35.0, 5.4.0-65-generic, LLVM 11.0.0)"; in TEST() local
57 EXPECT_EQ(SanitizeRendererString(testString), testExpectation); in TEST()
[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 …]
/external/guava/guava-tests/benchmark/com/google/common/base/
DAsciiBenchmark.java47 String testString; field in AsciiBenchmark
65 this.testString = new String(array); in setUp()
78 String string = noWorkToDo ? Ascii.toUpperCase(testString) : testString; in asciiStringToUpperCase()
89 String string = noWorkToDo ? charSequenceToUpperCase(testString) : testString; in asciiCharSequenceToUpperCase()
100 String string = noWorkToDo ? testString.toUpperCase(Locale.US) : testString; in stringToUpperCase()
112 String upperString = testString.toUpperCase(); in equalsIgnoreCaseCharSequence()
113 CharSequence testSeq = new StringBuilder(testString); in equalsIgnoreCaseCharSequence()
115 CharSequence[] lhs = new CharSequence[] {testString, testSeq, testString, testSeq}; in equalsIgnoreCaseCharSequence()
128 String lhs = testString; in equalsIgnoreCaseStringOnly()
129 String rhs = testString.toUpperCase(); in equalsIgnoreCaseStringOnly()
[all …]
/external/guava/android/guava-tests/benchmark/com/google/common/base/
DAsciiBenchmark.java47 String testString; field in AsciiBenchmark
65 this.testString = new String(array); in setUp()
78 String string = noWorkToDo ? Ascii.toUpperCase(testString) : testString; in asciiStringToUpperCase()
89 String string = noWorkToDo ? charSequenceToUpperCase(testString) : testString; in asciiCharSequenceToUpperCase()
100 String string = noWorkToDo ? testString.toUpperCase(Locale.US) : testString; in stringToUpperCase()
112 String upperString = testString.toUpperCase(); in equalsIgnoreCaseCharSequence()
113 CharSequence testSeq = new StringBuilder(testString); in equalsIgnoreCaseCharSequence()
115 CharSequence[] lhs = new CharSequence[] {testString, testSeq, testString, testSeq}; in equalsIgnoreCaseCharSequence()
128 String lhs = testString; in equalsIgnoreCaseStringOnly()
129 String rhs = testString.toUpperCase(); in equalsIgnoreCaseStringOnly()
[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/android/guava-tests/test/com/google/common/io/
DMultiReaderTest.java30 String testString = "abcdefgh"; in testOnlyOneOpen() local
31 final CharSource source = newCharSource(testString); in testOnlyOneOpen()
51 assertEquals(testString.length() * 3, result.length()); in testOnlyOneOpen()
67 String testString = "abcdefgh"; in testSimple() local
68 CharSource source = newCharSource(testString); in testSimple()
71 String expectedString = testString + testString; in testSimple()
/external/guava/guava-tests/test/com/google/common/io/
DMultiReaderTest.java30 String testString = "abcdefgh"; in testOnlyOneOpen() local
31 final CharSource source = newCharSource(testString); in testOnlyOneOpen()
51 assertEquals(testString.length() * 3, result.length()); in testOnlyOneOpen()
67 String testString = "abcdefgh"; in testSimple() local
68 CharSource source = newCharSource(testString); in testSimple()
71 String expectedString = testString + testString; in testSimple()
/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.java30 String testString; field in RBBIPerf
55 testString = testFileBuf.toString(); in setup()
73 bi.setText(testString); in setup()
76 jdkbi.setText(testString); in setup()
145 int n=testString.length();
153 int n = testString.length();
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DRopeByteStringTest.java76 ByteString testString = ByteString.copyFrom(testBytes); in testBalance() local
78 concatenated.equals(testString)); in testBalance()
80 testString.equals(concatenated)); in testBalance()
82 testString.hashCode(), concatenated.hashCode()); in testBalance()
/external/icu/icu4c/source/test/cintltst/
Dcustrtst.c484 const UChar testString[] = {0x0061, 0x0062, 0x0063, 0x0064, 0x0064, 0x0061, 0}; in TestStringSearching() local
508 if (u_strpbrk(testString, a) != &testString[0]) { in TestStringSearching()
511 if (u_strpbrk(testString, dc) != &testString[2]) { in TestStringSearching()
514 if (u_strpbrk(testString, cd) != &testString[2]) { in TestStringSearching()
517 if (u_strpbrk(testString, cdh) != &testString[2]) { in TestStringSearching()
520 if (u_strpbrk(testString, f) != NULL) { in TestStringSearching()
523 if (u_strpbrk(testString, fg) != NULL) { in TestStringSearching()
526 if (u_strpbrk(testString, gf) != NULL) { in TestStringSearching()
529 if (u_strpbrk(testString, empty) != NULL) { in TestStringSearching()
574 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/perfetto/ui/src/base/
Dstring_utils_unittest.ts40 const testString = '¡HéllØ wörld!'; constant
41 const buffer = utf8Encode(testString);
61 expect(utf8Decode(buffer)).toEqual(testString);

12345