Home
last modified time | relevance | path

Searched refs:testStr (Results 1 – 21 of 21) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/stdio/
Dasprintf.c31 char *testStr = NULL; in asprintf_0100() local
33 n = asprintf(&testStr, "%s", buf); in asprintf_0100()
34 free(testStr); in asprintf_0100()
35 testStr = NULL; in asprintf_0100()
47 char *testStr = NULL; in asprintf_0200() local
49 n = asprintf(&testStr, "%s", buf); in asprintf_0200()
50 free(testStr); in asprintf_0200()
51 testStr = NULL; in asprintf_0200()
63 char *testStr = NULL; in asprintf_0300() local
65 n = asprintf(&testStr, "%s", buf); in asprintf_0300()
[all …]
/third_party/icu/icu4c/source/test/iotest/
Dstrtst.c253 UChar testStr[256]; in TestLocalizedString() local
258 UFILE *strFile = u_fstropen(testStr, UPRV_LENGTHOF(testStr), "en_US"); in TestLocalizedString()
268 u_austrcpy(cBuffer,testStr); in TestLocalizedString()
269 if (u_strcmp(testStr, uBuffer) != 0) { in TestLocalizedString()
293 u_austrcpy(cBuffer,testStr); in TestLocalizedString()
294 if (u_strcmp(testStr, uBuffer) != 0) { in TestLocalizedString()
301 strFile = u_fstropen(testStr, UPRV_LENGTHOF(testStr), NULL); in TestLocalizedString()
310 if (u_fstropen(testStr, -1, NULL) != NULL) { in TestLocalizedString()
318 u_uastrncpy(testStr, "xxxxxxxxxxxxxx", UPRV_LENGTHOF(testStr));\
320 written = u_snprintf(testStr, limit, format, value);\
[all …]
Dstream.cpp66 …static const char testStr[] = "\x42\x65\x67\x69\x6E\x6E\x69\x6E\x67\x20\x6F\x66\x20\x74\x65\x73\x7… in TestStream() local
102 if (strcmp(testStreamBuf, testStr) != 0) { in TestStream()
103 log_err("Got: \"%s\", Expected: \"%s\"\n", testStreamBuf, testStr); in TestStream()
Dfiletst.c472 …static const char testStr[] = "This is a test string that tests u_fgets. It makes sure that we don… in TestfgetsBuffers() local
474 int32_t expectedSize = (int32_t)strlen(testStr); in TestfgetsBuffers()
493 u_uastrncpy(buffer, testStr, expectedSize+1); in TestfgetsBuffers()
535 u_uastrncpy(buffer, testStr, expectedSize+1); in TestfgetsBuffers()
577 u_uastrncpy(buffer, testStr, expectedSize+1); in TestfgetsBuffers()
629 …static const char testStr[] = "This is a test string that tests u_fgets. It makes sure that we don… in TestfgetsLineCount() local
632 int32_t expectedSize = (int32_t)strlen(testStr); in TestfgetsLineCount()
643 fwrite(testStr, sizeof(testStr[0]), expectedSize, stdFile); in TestfgetsLineCount()
645 fwrite("\n", sizeof(testStr[0]), 1, stdFile); in TestfgetsLineCount()
/third_party/skia/docs/examples/
DPaint_setLinearText.cpp10 const char testStr[] = "abcd efgh";
16 width.appendScalar(paint.measureText(testStr, SK_ARRAY_COUNT(testStr), nullptr));
18 canvas->drawString(testStr, 10, 0, paint);
DPaint_isLinearText.cpp10 const char testStr[] = "xxxx xxxx";
18 canvas->drawString(testStr, 10, 0, paint);
DPaint_setAutohinted.cpp10 const char testStr[] = "xxxx xxxx";
18 canvas->drawString(testStr, 10, 0, paint);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/functions/destructuring_parameter_declarations/
Ddestructuring_parameter_declarations_4.ts26 type testStr = "caihua"; alias
29 m_name: testStr | undefined;
32 constructor(name?: testStr, age?: testStrNum) {
50 }: { m_name: testStr | undefined; m_age: testStrNum | undefined } = v;
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/2.0/non_null_assertion_operator/
Dnon_null_assertion_operator.ts25 function testStr(x?: string, y?: number | string): string { function
29 Assert.equal(testStr("A"), "Aundefined");
30 Assert.equal(testStr("B", 5), "B5");
/third_party/node/test/parallel/
Dtest-http2-compat-serverrequest-pause.js11 const testStr = 'Request Body from Client'; constant
25 assert.strictEqual(data, testStr);
47 request.end(testStr);
/third_party/icu/icu4c/source/test/intltest/
Dcanittst.cpp154 UnicodeString testStr = CharsToUnicodeString(testArray[i][0]); in TestBasic() local
155 it.setSource(testStr, status); in TestBasic()
167 …expectEqual(i + UnicodeString(": "), testStr, collectionToString(set), CharsToUnicodeString(testAr… in TestBasic()
Drbbiapts.cpp1128 UChar testStr[] = {0x20, 0x41, 0x20, 0x42, 0x20, 0x43, 0x20, 0x44, 0x0}; /* = " A B C D" */ in TestRefreshInputText() local
1136 utext_openUChars(&ut1, testStr, -1, &status); in TestRefreshInputText()
1148 u_strcpy(movedStr, testStr); in TestRefreshInputText()
1149 u_memset(testStr, 0x20, u_strlen(testStr)); in TestRefreshInputText()
Drbbitst.cpp4948 UnicodeString testStr; in TestTable_8_16_Bits() local
4950 testStr.append(c); in TestTable_8_16_Bits()
4962 ruleString.findAndReplace(UnicodeString(u"#"), UnicodeString(testStr, 0, ruleLen)); in TestTable_8_16_Bits()
4972 bi.setText(testStr); in TestTable_8_16_Bits()
4977 bi.setText(testStr); in TestTable_8_16_Bits()
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/
DUnicodeSetClosure.java110 public static void test(String testStr) throws Exception { in test() argument
111 UnicodeSet original = new UnicodeSet(testStr); in test()
/third_party/icu/icu4c/source/test/cintltst/
Dcbiapts.c984 UChar testStr[] = {0x20, 0x41, 0x20, 0x42, 0x20, 0x43, 0x20, 0x44, 0x0}; /* = " A B C D" */ in TestBreakIteratorRefresh() local
997 utext_openUChars(&ut1, testStr, -1, &status); in TestBreakIteratorRefresh()
1008 u_strcpy(movedStr, testStr); in TestBreakIteratorRefresh()
1009 u_memset(testStr, 0x20, u_strlen(testStr)); in TestBreakIteratorRefresh()
Dreapits.c2201 UChar testStr[] = {0x41, 0x20, 0x42, 0x20, 0x43, 0x0}; /* = "A B C" */ in TestRefreshInput() local
2211 utext_openUChars(&ut1, testStr, -1, &status); in TestRefreshInput()
2221 u_strcpy(movedStr, testStr); in TestRefreshInput()
2222 u_memset(testStr, 0, u_strlen(testStr)); in TestRefreshInput()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DRBBITest.java820 String testStr = builder.toString();
827 .replace("#", testStr.substring(0, ruleLen));
832 bi.setText(testStr);
838 bi.setText(testStr);
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/
DCollationAPITest.java1209 String testStr[] = {
1269 CollationKey testKey[] = new CollationKey[testStr.length];
1270 for (int i = 0; i < testStr.length; i ++) {
1271 testKey[i] = coll.getCollationKey(testStr[i]);
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationAPITest.java1206 String testStr[] = {
1266 CollationKey testKey[] = new CollationKey[testStr.length];
1267 for (int i = 0; i < testStr.length; i ++) {
1268 testKey[i] = coll.getCollationKey(testStr[i]);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmInstructionTests.cpp19932 string testStr = ""; in createBoolMixedBitSizeGroup() local
19933 testStr += "%inval32 = OpLoad %f32 %inloc\n"; in createBoolMixedBitSizeGroup()
19935 testStr += "%inval16 = OpFConvert %f16 %inval32\n"; in createBoolMixedBitSizeGroup()
19937 testStr += "%inval8 = OpConvertFToS %i8 %inval32\n"; in createBoolMixedBitSizeGroup()
19944 testStr += "%cmp1 = OpFOrdGreaterThanEqual %bool %inval32 %c25f32\n"; in createBoolMixedBitSizeGroup()
19946 testStr += "%cmp1 = OpFOrdGreaterThanEqual %bool %inval16 %c25f16\n"; in createBoolMixedBitSizeGroup()
19948 testStr += "%cmp1 = OpSGreaterThanEqual %bool %inval8 %c25i8\n"; in createBoolMixedBitSizeGroup()
19951 testStr += "%cmp2 = OpFOrdLessThan %bool %inval32 %c50f32\n"; in createBoolMixedBitSizeGroup()
19953 testStr += "%cmp2 = OpFOrdLessThan %bool %inval16 %c50f16\n"; in createBoolMixedBitSizeGroup()
19955 testStr += "%cmp2 = OpSLessThan %bool %inval8 %c50i8\n"; in createBoolMixedBitSizeGroup()
[all …]
/third_party/python/Lib/test/
Dtest_marshal.py418 def testStr(self): member in InstancingTestCase