/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | NioByteStringTest.java | 59 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 …]
|
D | RopeByteStringSubstringTest.java | 81 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()
|
D | BoundedByteStringTest.java | 63 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()
|
D | RopeByteStringTest.java | 105 ByteString testString = ByteString.copyFrom(testBytes); in testBalance() local 107 classUnderTest + " balanced string must equal flat string", testString, concatenated); in testBalance() 109 classUnderTest + " flat string must equal balanced string", concatenated, testString); in testBalance() 112 testString.hashCode(), in testBalance() 129 String testString = builder.toString(); in testToString() local 136 assertEquals(classUnderTest + " unicode bytes must match", testString, roundTripString); in testToString() 137 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString() 158 String testString = builder.toString(); in testCharsetToString() local 165 assertEquals(classUnderTest + " unicode bytes must match", testString, roundTripString); in testCharsetToString() 166 ByteString flatString = ByteString.copyFromUtf8(testString); in testCharsetToString()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/rbbi/ |
D | RBBIAPITest.java | 52 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 …]
|
D | RBBITestExtended.java | 101 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 …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
D | RBBIAPITest.java | 49 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 …]
|
D | RBBITestExtended.java | 98 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 …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
D | DisplayGL_unittest.cpp | 26 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 …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/translit/ |
D | ErrorTest.java | 37 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 …]
|
/third_party/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
D | ErrorTest.java | 34 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 …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | trnserr.cpp | 61 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 …]
|
D | strtest.cpp | 849 CharString testString; in TestCharStrAppendNumber() local 850 testString.appendNumber(1, errorCode); in TestCharStrAppendNumber() 851 assertEquals("TestAppendNumber 1", "1", testString.data()); in TestCharStrAppendNumber() 853 testString.clear(); in TestCharStrAppendNumber() 854 testString.appendNumber(-1, errorCode); in TestCharStrAppendNumber() 855 assertEquals("TestAppendNumber -1", "-1", testString.data()); in TestCharStrAppendNumber() 857 testString.clear(); in TestCharStrAppendNumber() 858 testString.appendNumber(12345, errorCode); in TestCharStrAppendNumber() 859 assertEquals("TestAppendNumber 12345", "12345", testString.data()); in TestCharStrAppendNumber() 860 testString.appendNumber(123, errorCode); in TestCharStrAppendNumber() [all …]
|
/third_party/unity/test/tests/ |
D | test_unity_strings.c | 38 const char *testString = "foo"; in testEqualStrings() local 40 TEST_ASSERT_EQUAL_STRING(testString, testString); in testEqualStrings() 42 TEST_ASSERT_EQUAL_STRING("foo", testString); in testEqualStrings() 43 TEST_ASSERT_EQUAL_STRING(testString, "foo"); in testEqualStrings() 49 const char *testString = "foobar"; in testEqualStringsLen() local 50 TEST_ASSERT_EQUAL_STRING_LEN(testString, testString, strlen(testString)); in testEqualStringsLen() 52 TEST_ASSERT_EQUAL_STRING_LEN("foo", testString, 3); in testEqualStringsLen() 53 TEST_ASSERT_EQUAL_STRING_LEN(testString, "foo", 3); in testEqualStringsLen() 59 const char *testString = "foo\r\nbar"; in testEqualStringsWithCarriageReturnsAndLineFeeds() local 61 TEST_ASSERT_EQUAL_STRING(testString, testString); in testEqualStringsWithCarriageReturnsAndLineFeeds() [all …]
|
D | test_unity_memory.c | 38 const char *testString = "whatever"; in testEqualMemory() local 40 TEST_ASSERT_EQUAL_MEMORY(testString, testString, 8); in testEqualMemory() 42 TEST_ASSERT_EQUAL_MEMORY("whatever", testString, 8); in testEqualMemory() 43 TEST_ASSERT_EQUAL_MEMORY(testString, "whatever", 8); in testEqualMemory() 44 TEST_ASSERT_EQUAL_MEMORY(testString, "whatever", 2); in testEqualMemory()
|
/third_party/icu/icu4c/source/test/iotest/ |
D | stream.cpp | 219 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 …]
|
/third_party/node/test/parallel/ |
D | test-http2-compat-serverresponse-drain.js | 11 const testString = 'tests'; constant 16 res.stream._writableState.highWaterMark = testString.length; 17 assert.strictEqual(res.write(testString), false); 18 res.on('drain', common.mustCall(() => res.end(testString))); 39 assert.strictEqual(data, testString.repeat(2));
|
D | test-http2-createwritereq.js | 14 const testString = 'a\u00A1\u0100\uD83D\uDE00'; constant 37 Buffer.from(testString, testEncoding).equals(chunk) 53 writeEncoding !== 'buffer' ? testString : Buffer.from(testString),
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | TestUScriptRun.java | 337 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()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/ |
D | TestUScriptRun.java | 340 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()
|
/third_party/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
D | RBBIPerf.java | 30 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();
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | RopeByteStringTest.java | 76 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()
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | custrtst.c | 484 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 …]
|
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/base/ |
D | process_test.dart | 81 final List<String> testString = <String>['0123456789' * 10]; 82 mockProcessManager.processFactory = processMetaFactory(testString, stderr: testString); 84 expect(mockLogger.statusText, equals('${testString[0]}\n')); 85 expect(mockLogger.errorText, equals('${testString[0]}\n'));
|
/third_party/icu/icu4c/source/samples/citer/ |
D | citer.cpp | 58 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()
|