Home
last modified time | relevance | path

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

12345678910>>...21

/external/sdv/vsomeip/third_party/boost/tokenizer/test/
Dexamples.cpp26 const std::string test_string = ";;Hello|world||-foo--bar;yow;baz|"; in test_main() local
30 Tok t(test_string, sep); in test_main()
34 const std::string test_string = ";;Hello|world||-foo--bar;yow;baz|"; in test_main() local
39 Tok t(test_string, sep); in test_main()
43 const std::string test_string = "This,,is, a.test.."; in test_main() local
46 Tok t(test_string); in test_main()
51 const std::string test_string = "Field 1,\"embedded,comma\",quote \\\", escape \\\\"; in test_main() local
54 Tok t(test_string); in test_main()
59 const std::string test_string = ",1,;2\\\";3\\;,4,5^\\,\'6,7\';"; in test_main() local
63 Tok t(test_string,sep); in test_main()
[all …]
/external/tensorflow/tensorflow/core/lib/wav/
Dwav_io_test.cc244 string test_string(test_data.begin(), test_data.end()); in TEST() local
247 TF_EXPECT_OK(ExpectText(test_string, "Expected", &offset)); in TEST()
251 Status expect_status = ExpectText(test_string, "Unexpected", &offset); in TEST()
255 TF_EXPECT_OK(ExpectText(test_string, "Exp", &offset)); in TEST()
257 TF_EXPECT_OK(ExpectText(test_string, "ected", &offset)); in TEST()
259 expect_status = ExpectText(test_string, "foo", &offset); in TEST()
267 string test_string(test_data.begin(), test_data.end()); in TEST() local
271 TF_EXPECT_OK(ReadString(test_string, 2, &read_value, &offset)); in TEST()
275 TF_EXPECT_OK(ReadString(test_string, 6, &read_value, &offset)); in TEST()
279 Status read_status = ReadString(test_string, 3, &read_value, &offset); in TEST()
[all …]
/external/libxkbcommon/test/
Dkeysym.c31 test_string(const char *string, xkb_keysym_t expected) in test_string() function
98 assert(test_string("i", XKB_KEY_i)); in test_github_issue_42()
99 assert(test_string("I", XKB_KEY_I)); in test_github_issue_42()
134 assert(test_string("Undo", 0xFF65)); in main()
135 assert(test_string("ThisKeyShouldNotExist", XKB_KEY_NoSymbol)); in main()
136 assert(test_string("XF86_Switch_VT_5", 0x1008FE05)); in main()
137 assert(test_string("VoidSymbol", 0xFFFFFF)); in main()
138 assert(test_string("U4567", 0x1004567)); in main()
139 assert(test_string("U+4567", XKB_KEY_NoSymbol)); in main()
140 assert(test_string("U+4567ffff", XKB_KEY_NoSymbol)); in main()
[all …]
/external/python/cpython3/Modules/_testcapi/
Dobject.c59 PyObject *test_string; in pyobject_print_noref_object() local
64 test_string = PyUnicode_FromString("Spam spam spam"); in pyobject_print_noref_object()
66 Py_SET_REFCNT(test_string, 0); in pyobject_print_noref_object()
69 Py_REFCNT(test_string), (void *)test_string); in pyobject_print_noref_object()
77 if (PyObject_Print(test_string, fp, 0) < 0){ in pyobject_print_noref_object()
79 Py_SET_REFCNT(test_string, 1); in pyobject_print_noref_object()
80 Py_DECREF(test_string); in pyobject_print_noref_object()
86 Py_SET_REFCNT(test_string, 1); in pyobject_print_noref_object()
87 Py_DECREF(test_string); in pyobject_print_noref_object()
95 PyObject *test_string; in pyobject_print_os_error() local
[all …]
/external/liburing/test/
Druntests.sh70 local test_string="$test_name"
76 test_string="$test_name $dev"
84 local dmesg_marker="Running test $test_string:"
89 printf "Running test %-55s" "$test_string"
96 SKIPPED+=("<$test_string>")
113 TIMED_OUT+=("<$test_string>")
116 SKIPPED+=("<$test_string>")
117 elif [[ $test_string != xfail* ]] && [ "$status" -ne 0 ]; then
119 FAILED+=("<$test_string>")
120 elif [[ $test_string == xfail* ]] && [ "$status" -ne 1 ]; then
[all …]
/external/python/oauth2client/tests/
Dtest__helpers.py24 test_string = b'1234-----BEGIN FOO BAR BAZ'
25 result = _helpers._parse_pem_key(test_string)
26 self.assertEqual(result, test_string[4:])
29 test_string = b'DOES NOT HAVE DASHES'
30 result = _helpers._parse_pem_key(test_string)
88 test_string = b'deadbeef'
89 result = _helpers._urlsafe_b64encode(test_string)
93 test_string = u'deadbeef'
94 result = _helpers._urlsafe_b64encode(test_string)
101 test_string = b'ZGVhZGJlZWY'
[all …]
/external/cronet/stable/third_party/libc++/src/test/libcxx/strings/basic.string/
Dsizeof.compile.pass.cpp56 using test_string = std::basic_string<CharT, std::char_traits<CharT>, test_allocator<CharT> >; typedef
65 static_assert(sizeof(test_string<char>) == 32, "");
72 static_assert(sizeof(test_string<wchar_t>) == 32, "");
77 static_assert(sizeof(test_string<wchar_t>) == 32, "");
87 static_assert(sizeof(test_string<char8_t>) == 32, "");
96 static_assert(sizeof(test_string<char16_t>) == 32, "");
97 static_assert(sizeof(test_string<char32_t>) == 32, "");
106 static_assert(sizeof(test_string<char>) == 24, "");
113 static_assert(sizeof(test_string<wchar_t>) == 24, "");
118 static_assert(sizeof(test_string<wchar_t>) == 24, "");
[all …]
Dalignof.compile.pass.cpp58 using test_string = std::basic_string<CharT, std::char_traits<CharT>, test_allocator<CharT>>; typedef
67 static_assert(alignof(test_string<char>) == 8, "");
74 static_assert(alignof(test_string<wchar_t>) == 8, "");
79 static_assert(alignof(test_string<wchar_t>) == 8, "");
89 static_assert(alignof(test_string<char8_t>) == 8, "");
98 static_assert(alignof(test_string<char16_t>) == 8, "");
99 static_assert(alignof(test_string<char32_t>) == 8, "");
108 static_assert(alignof(test_string<char>) == 4, "");
115 static_assert(alignof(test_string<wchar_t>) == 4, "");
120 static_assert(alignof(test_string<wchar_t>) == 4, "");
[all …]
/external/cronet/tot/third_party/libc++/src/test/libcxx/strings/basic.string/
Dsizeof.compile.pass.cpp56 using test_string = std::basic_string<CharT, std::char_traits<CharT>, test_allocator<CharT> >; typedef
65 static_assert(sizeof(test_string<char>) == 32, "");
72 static_assert(sizeof(test_string<wchar_t>) == 32, "");
77 static_assert(sizeof(test_string<wchar_t>) == 32, "");
87 static_assert(sizeof(test_string<char8_t>) == 32, "");
96 static_assert(sizeof(test_string<char16_t>) == 32, "");
97 static_assert(sizeof(test_string<char32_t>) == 32, "");
106 static_assert(sizeof(test_string<char>) == 24, "");
113 static_assert(sizeof(test_string<wchar_t>) == 24, "");
118 static_assert(sizeof(test_string<wchar_t>) == 24, "");
[all …]
Dalignof.compile.pass.cpp58 using test_string = std::basic_string<CharT, std::char_traits<CharT>, test_allocator<CharT>>; typedef
67 static_assert(alignof(test_string<char>) == 8, "");
74 static_assert(alignof(test_string<wchar_t>) == 8, "");
79 static_assert(alignof(test_string<wchar_t>) == 8, "");
89 static_assert(alignof(test_string<char8_t>) == 8, "");
98 static_assert(alignof(test_string<char16_t>) == 8, "");
99 static_assert(alignof(test_string<char32_t>) == 8, "");
108 static_assert(alignof(test_string<char>) == 4, "");
115 static_assert(alignof(test_string<wchar_t>) == 4, "");
120 static_assert(alignof(test_string<wchar_t>) == 4, "");
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/strings_ops/
Dsubstr_op_test.py39 test_string = {
49 substr_op = string_ops.substr(test_string, position, length, unit=unit)
62 test_string = {
69 substr_op = string_ops.substr(test_string, position, length, unit=unit)
75 test_string = {
81 substr_op = string_ops.substr(test_string, position, length, unit=unit)
84 self.assertAllEqual(substr, test_string)
87 test_string = {
93 substr_op = string_ops.substr(test_string, position, length, unit=unit)
96 self.assertAllEqual(substr, test_string)
[all …]
/external/fmtlib/test/
Dostream-test.cc65 template <> struct formatter<test_string> : ostream_formatter {};
77 EXPECT_EQ("a string", fmt::format("{0}", test_string("a string"))); in TEST()
84 EXPECT_EQ("def ", fmt::format("{0:<5}", test_string("def"))); in TEST()
85 EXPECT_EQ(" def", fmt::format("{0:>5}", test_string("def"))); in TEST()
86 EXPECT_EQ(" def ", fmt::format("{0:^5}", test_string("def"))); in TEST()
87 EXPECT_EQ("def**", fmt::format("{0:*<5}", test_string("def"))); in TEST()
88 EXPECT_THROW_MSG((void)fmt::format(runtime("{0:+}"), test_string()), in TEST()
90 EXPECT_THROW_MSG((void)fmt::format(runtime("{0:-}"), test_string()), in TEST()
92 EXPECT_THROW_MSG((void)fmt::format(runtime("{0: }"), test_string()), in TEST()
94 EXPECT_THROW_MSG((void)fmt::format(runtime("{0:#}"), test_string()), in TEST()
[all …]
/external/cronet/tot/third_party/libc++/src/test/std/strings/basic.string/string.ops/string.accessors/
Dget_allocator.pass.cpp26 TEST_CONSTEXPR_CXX20 void test_string(const Alloc& a) { in test_string() function
35 test_string(std::allocator<char>()); in test()
36 test_string(test_allocator<char>()); in test()
37 test_string(test_allocator<char>(1)); in test()
38 test_string(test_allocator<char>(2)); in test()
39 test_string(test_allocator<char>(3)); in test()
41 test_string(min_allocator<char>()); in test()
/external/cronet/stable/third_party/libc++/src/test/std/strings/basic.string/string.ops/string.accessors/
Dget_allocator.pass.cpp26 TEST_CONSTEXPR_CXX20 void test_string(const Alloc& a) { in test_string() function
35 test_string(std::allocator<char>()); in test()
36 test_string(test_allocator<char>()); in test()
37 test_string(test_allocator<char>(1)); in test()
38 test_string(test_allocator<char>(2)); in test()
39 test_string(test_allocator<char>(3)); in test()
41 test_string(min_allocator<char>()); in test()
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/syn-2.0.87/tests/
Dtest_lit.rs34 fn test_string(s: &str, value: &str) { in strings() function
41 test_string(&again, value); in strings()
48 test_string(r#" "" "#, ""); in strings()
49 test_string(r#" "a" "#, "a"); in strings()
50 test_string(r#" "\n" "#, "\n"); in strings()
51 test_string(r#" "\r" "#, "\r"); in strings()
52 test_string(r#" "\t" "#, "\t"); in strings()
53 test_string(r#" "��" "#, "��"); // NOTE: This is an emoji in strings()
54 test_string(r#" "\"" "#, "\""); in strings()
55 test_string(r#" "'" "#, "'"); in strings()
[all …]
/external/rust/android-crates-io/crates/syn/tests/
Dtest_lit.rs35 fn test_string(s: &str, value: &str) { in strings() function
42 test_string(&again, value); in strings()
49 test_string(r#" "" "#, ""); in strings()
50 test_string(r#" "a" "#, "a"); in strings()
51 test_string(r#" "\n" "#, "\n"); in strings()
52 test_string(r#" "\r" "#, "\r"); in strings()
53 test_string(r#" "\t" "#, "\t"); in strings()
54 test_string(r#" "��" "#, "��"); // NOTE: This is an emoji in strings()
55 test_string(r#" "\"" "#, "\""); in strings()
56 test_string(r#" "'" "#, "'"); in strings()
[all …]
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/syn-2.0.87/tests/
Dtest_lit.rs34 fn test_string(s: &str, value: &str) { in strings() function
41 test_string(&again, value); in strings()
48 test_string(r#" "" "#, ""); in strings()
49 test_string(r#" "a" "#, "a"); in strings()
50 test_string(r#" "\n" "#, "\n"); in strings()
51 test_string(r#" "\r" "#, "\r"); in strings()
52 test_string(r#" "\t" "#, "\t"); in strings()
53 test_string(r#" "��" "#, "��"); // NOTE: This is an emoji in strings()
54 test_string(r#" "\"" "#, "\""); in strings()
55 test_string(r#" "'" "#, "'"); in strings()
[all …]
/external/cronet/stable/third_party/libc++/src/test/std/strings/basic.string/string.cons/
Dcopy.pass.cpp33 TEST_CONSTEXPR_CXX20 void test_string(const Alloc& a) { in test_string() function
41 test_string(std::allocator<char>()); in test()
42 test_string(test_allocator<char>()); in test()
43 test_string(test_allocator<char>(3)); in test()
45 test_string(min_allocator<char>()); in test()
46 test_string(safe_allocator<char>()); in test()
/external/cronet/tot/third_party/libc++/src/test/std/strings/basic.string/string.cons/
Dcopy.pass.cpp33 TEST_CONSTEXPR_CXX20 void test_string(const Alloc& a) { in test_string() function
41 test_string(std::allocator<char>()); in test()
42 test_string(test_allocator<char>()); in test()
43 test_string(test_allocator<char>(3)); in test()
45 test_string(min_allocator<char>()); in test()
46 test_string(safe_allocator<char>()); in test()
Dmove.pass.cpp38 TEST_CONSTEXPR_CXX20 void test_string(Alloc const& a) { in test_string() function
46 test_string(std::allocator<char>()); in test()
47 test_string(test_allocator<char>()); in test()
48 test_string(test_allocator<char>(3)); in test()
49 test_string(min_allocator<char>()); in test()
/external/libchrome/mojo/public/cpp/system/tests/
Dfile_data_pipe_producer_unittest.cc180 std::string test_string; in TEST_F() local
182 test_string += kTestStringFragment; in TEST_F()
184 base::FilePath path = CreateTempFileWithContents(test_string); in TEST_F()
200 EXPECT_EQ(test_string, reader.data()); in TEST_F()
202 EXPECT_EQ(test_string.size(), observer_data.bytes_read); in TEST_F()
258 std::string test_string; in TEST_F() local
260 test_string += kTestStringFragment; in TEST_F()
262 base::FilePath path = CreateTempFileWithContents(test_string); in TEST_F()
277 EXPECT_EQ(test_string, reader.data()); in TEST_F()
279 EXPECT_EQ(test_string.size(), observer_data.bytes_read); in TEST_F()
[all …]
/external/cronet/tot/third_party/libc++/src/test/std/strings/basic.string/string.capacity/
Dcapacity.pass.cpp43 TEST_CONSTEXPR_CXX20 void test_string(const Alloc& a) { in test_string() function
67 test_string(std::allocator<char>()); in test()
68 test_string(test_allocator<char>()); in test()
69 test_string(test_allocator<char>(3)); in test()
70 test_string(min_allocator<char>()); in test()
71 test_string(safe_allocator<char>()); in test()
/external/cronet/stable/third_party/libc++/src/test/std/strings/basic.string/string.capacity/
Dcapacity.pass.cpp43 TEST_CONSTEXPR_CXX20 void test_string(const Alloc& a) { in test_string() function
67 test_string(std::allocator<char>()); in test()
68 test_string(test_allocator<char>()); in test()
69 test_string(test_allocator<char>(3)); in test()
70 test_string(min_allocator<char>()); in test()
71 test_string(safe_allocator<char>()); in test()
/external/cronet/tot/third_party/libc++/src/test/std/strings/basic.string/string.require/
Dcontiguous.pass.cpp27 TEST_CONSTEXPR_CXX20 void test_string(const Alloc& a) { in test_string() function
48 test_string(std::allocator<char>()); in test()
49 test_string(test_allocator<char>()); in test()
50 test_string(test_allocator<char>(3)); in test()
52 test_string(min_allocator<char>()); in test()
/external/cronet/stable/third_party/libc++/src/test/std/strings/basic.string/string.require/
Dcontiguous.pass.cpp27 TEST_CONSTEXPR_CXX20 void test_string(const Alloc& a) { in test_string() function
48 test_string(std::allocator<char>()); in test()
49 test_string(test_allocator<char>()); in test()
50 test_string(test_allocator<char>(3)); in test()
52 test_string(min_allocator<char>()); in test()

12345678910>>...21