Home
last modified time | relevance | path

Searched refs:test_string (Results 1 – 25 of 40) sorted by relevance

12

/third_party/node/test/js-native-api/test_string/
Dtest.js6 const test_string = require(`./build/${common.buildType}/test_string`); constant
9 assert.strictEqual(test_string.TestLatin1(empty), empty);
10 assert.strictEqual(test_string.TestUtf8(empty), empty);
11 assert.strictEqual(test_string.TestUtf16(empty), empty);
12 assert.strictEqual(test_string.TestLatin1AutoLength(empty), empty);
13 assert.strictEqual(test_string.TestUtf8AutoLength(empty), empty);
14 assert.strictEqual(test_string.TestUtf16AutoLength(empty), empty);
15 assert.strictEqual(test_string.TestLatin1External(empty), empty);
16 assert.strictEqual(test_string.TestUtf16External(empty), empty);
17 assert.strictEqual(test_string.TestLatin1ExternalAutoLength(empty), empty);
[all …]
Dbinding.gyp4 "target_name": "test_string",
7 "test_string.c",
/third_party/pulseaudio/src/pulsecore/
Dmessage-handler.c36 static bool object_path_is_valid(const char *test_string) { in object_path_is_valid() argument
39 if (!test_string) in object_path_is_valid()
43 if (test_string[0] != '/') in object_path_is_valid()
46 for (i = 0; test_string[i]; i++) { in object_path_is_valid()
48 if ((test_string[i] >= 'a' && test_string[i] <= 'z') || in object_path_is_valid()
49 (test_string[i] >= 'A' && test_string[i] <= 'Z') || in object_path_is_valid()
50 (test_string[i] >= '0' && test_string[i] <= '9') || in object_path_is_valid()
51 test_string[i] == '.' || in object_path_is_valid()
52 test_string[i] == '_' || in object_path_is_valid()
53 test_string[i] == '-' || in object_path_is_valid()
[all …]
/third_party/rust/crates/syn/tests/
Dtest_lit.rs26 fn test_string(s: &str, value: &str) { in strings() function
32 test_string(&again, value); in strings()
39 test_string("\"a\"", "a"); in strings()
40 test_string("\"\\n\"", "\n"); in strings()
41 test_string("\"\\r\"", "\r"); in strings()
42 test_string("\"\\t\"", "\t"); in strings()
43 test_string("\"��\"", "��"); // NOTE: This is an emoji in strings()
44 test_string("\"\\\"\"", "\""); in strings()
45 test_string("\"'\"", "'"); in strings()
46 test_string("\"\"", ""); in strings()
[all …]
/third_party/jerryscript/tests/unit-core/
Dtest-api-strings.cpp138 JERRY_VLA (char, test_string, utf8_sz);
140 …TEST_ASSERT (jerry_string_to_utf8_char_buffer (args[0], (jerry_char_t *) test_string, utf8_sz) == …
141 …TEST_ASSERT (!strncmp (test_string, "\x73\x74\x72\x3a \xf0\x9d\x94\xa3 \xf0\x9d\x94\xa4", utf8_sz)…
143 …sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length, (jerry_char_t *) test_string, u…
145 TEST_ASSERT (!strncmp (test_string, "\x73\x74\x72\x3a \xf0\x9d\x94\xa3 \xf0\x9d\x94\xa4", sz));
147 …substring_to_utf8_char_buffer (args[0], 0, utf8_length + 1, (jerry_char_t *) test_string, utf8_sz);
149 TEST_ASSERT (!strncmp (test_string, "\x73\x74\x72\x3a \xf0\x9d\x94\xa3 \xf0\x9d\x94\xa4", sz));
151 …sz = jerry_substring_to_utf8_char_buffer (args[0], utf8_length, 0, (jerry_char_t *) test_string, u…
154 …sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length, (jerry_char_t *) test_string, u…
156 TEST_ASSERT (!strncmp (test_string, "\x73\x74\x72\x3a \xf0\x9d\x94\xa3 ", sz));
[all …]
/third_party/python/Lib/test/
Dtest_struct.py394 test_string = b'abcd01234'
398 data = cls(test_string)
404 for i in range(6, len(test_string) + 1):
407 data = cls(test_string)
413 for i in range(6, len(test_string) + 1):
417 self.assertEqual(s.unpack_from(buffer=test_string, offset=2),
421 test_string = b'Reykjavik rocks, eow!'
427 s.pack_into(writable_buf, 0, test_string)
428 from_buf = writable_buf.tobytes()[:len(test_string)]
429 self.assertEqual(from_buf, test_string)
[all …]
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/
Dbuild.rs16 let mut test_string = String::new(); in main() localVariable
47 test_string.push_str(&format!( in main()
61 test_file.write_all(test_string.as_bytes()).unwrap(); in main()
/third_party/vixl/test/
Dtest-code-buffer.cc105 const char* test_string = "test string"; in TEST() local
112 buffer.EmitString(test_string); in TEST()
113 expected_size += strlen(test_string) + 1; // EmitString() emits the '\0'. in TEST()
/third_party/glib/patch/
Dbackport-gregex-set-default-max-stack-size-for-PCRE2-JIT-compiler-to-512KiB.patch46 Conflict:Move test_string to fix declaration-after-statement
149 + char test_string[TEST_STRING_LEN];
158 + memset (test_string, '*', TEST_STRING_LEN);
159 + test_string[TEST_STRING_LEN - 1] = '\0';
160 + TEST_MATCH_SIMPLE ("^(?:[ \t\n]|[^[:cntrl:]])*$", test_string, 0, 0, TRUE);
Dbackport-gregex-if-JIT-stack-limit-is-reached-fall-back-to-interpretive-matching.patch65 char test_string[TEST_STRING_LEN];
71 test_string[TEST_STRING_LEN - 1] = '\0';
72 TEST_MATCH_SIMPLE ("^(?:[ \t\n]|[^[:cntrl:]])*$", test_string, 0, 0, TRUE);
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_struct_sqlite/
Dmain.c50 static const char *test_string = variable
112 ts.str2 = test_string; in main()
169 strcmp(pts->str2, test_string) || in main()
/third_party/node/tools/inspector_protocol/jinja2/
Dtests.py77 def test_string(value): function
151 'string': test_string,
/third_party/skia/third_party/externals/jinja2/
Dtests.py112 def test_string(value): function
191 "string": test_string,
/third_party/node/deps/v8/third_party/jinja2/
Dtests.py112 def test_string(value): function
191 "string": test_string,
/third_party/jinja2/
Dtests.py148 def test_string(value: t.Any) -> bool: function
231 "string": test_string,
/third_party/python/Lib/idlelib/idle_test/
Dtest_format.py195 test_string = (
198 result = ft.reformat_comment(test_string, 70, " ")
252 test_string = ( variable in FormatEventTest
298 text.insert('1.0', self.test_string)
310 text.insert('1.0', self.test_string)
/third_party/mbedtls/tests/scripts/
Danalyze_outcomes.py83 test_string = key.split(';')[1] # retrieve the text string of this test
88 (test_string in ignored_test[full_test_suite])):
/third_party/libwebsockets/minimal-examples/mqtt-client/minimal-mqtt-client/
Dminimal-mqtt-client.c69 static const char * const test_string = variable
229 test_string + pss->pos, (uint32_t)chunk, in callback_mqtt()
/third_party/libwebsockets/minimal-examples/mqtt-client/minimal-mqtt-client-multi/
Dminimal-mqtt-client-multi.c79 static const char * const test_string = variable
291 test_string + pss->pos, (uint32_t)chunk, in callback_mqtt()
/third_party/python/Lib/sqlite3/test/
Dfactory.py241 def test_string(self): member in TextFactoryTests
276 def test_string(self): member in TextFactoryTestsWithEmbeddedZeroBytes
Dtypes.py42 def test_string(self): member in SqliteTypeTests
150 def test_string(self): member in DeclTypesTests
/third_party/gstreamer/gstplugins_bad/tests/check/elements/
Dkate.c481 const gchar *test_string = ""; in GST_START_TEST() local
492 inbuffer = gst_buffer_new_memdup (test_string, strlen (test_string) + 1); in GST_START_TEST()
/third_party/vixl/test/aarch32/
Dtest-assembler-aarch32.cc1178 std::string test_string(string_size, 'x'); in TEST() local
1179 StringLiteral big_literal(test_string.c_str()); in TEST()
1227 std::string test_string(string_size, 'x'); in TEST() local
1228 StringLiteral big_literal(test_string.c_str()); in TEST()
1279 std::string test_string(string_size, 'x'); in EmitReusedLoadLiteralStressTest() local
1280 StringLiteral big_literal(test_string.c_str()); in EmitReusedLoadLiteralStressTest()
1522 std::string test_string(string_size, 'x'); in TEST() local
1523 StringLiteral big_literal(test_string.c_str()); in TEST()
1566 std::string test_string(string_size, 'x'); in TEST() local
1567 StringLiteral big_literal(test_string.c_str()); in TEST()
[all …]
/third_party/openssl/test/
Dtest_test.c256 static int test_string(void) in test_string() function
565 ADD_TEST(test_string); in setup_tests()
/third_party/protobuf/src/google/protobuf/
Darena_unittest.cc1096 std::string test_string = "hello world"; in FillArenaAwareFields() local
1098 message->set_optional_string(test_string); in FillArenaAwareFields()
1099 message->set_optional_bytes(test_string); in FillArenaAwareFields()
1104 message->set_oneof_string(test_string); in FillArenaAwareFields()
1105 message->set_oneof_bytes(test_string); in FillArenaAwareFields()

12