Home
last modified time | relevance | path

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

12345678910>>...16

/aosp_15_r20/external/tensorflow/tensorflow/core/lib/wav/
H A 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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/external/libxkbcommon/test/
H A 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 …]
/aosp_15_r20/external/tensorflow/tensorflow/python/kernel_tests/strings_ops/
H A 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 …]
/aosp_15_r20/external/fmtlib/test/
H A 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 …]
/aosp_15_r20/bionic/tests/
H A Dgrp_pwd_file_test.cpp94 static const char test_string[] = "name:password:1:2:user_info:dir:shell\n"; in TEST() local
95 write(file.fd, test_string, sizeof(test_string) - 1); in TEST()
114 static const char test_string[] = "name:password:1:one,two,three\n"; in TEST() local
115 write(file.fd, test_string, sizeof(test_string) - 1); in TEST()
134 static const char test_string[] = in TEST() local
151 write(file.fd, test_string, sizeof(test_string) - 1); in TEST()
172 static const char test_string[] = in TEST() local
187 write(file.fd, test_string, sizeof(test_string) - 1); in TEST()
208 static const char test_string[] = in TEST() local
211 write(file.fd, test_string, sizeof(test_string) - 1); in TEST()
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/syn-1.0.109/tests/
H A 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 …]
/aosp_15_r20/external/rust/android-crates-io/crates/syn/tests/
Dtest_lit.rs29 fn test_string(s: &str, value: &str) { in strings() function
35 test_string(&again, value); in strings()
42 test_string("\"a\"", "a"); in strings()
43 test_string("\"\\n\"", "\n"); in strings()
44 test_string("\"\\r\"", "\r"); in strings()
45 test_string("\"\\t\"", "\t"); in strings()
46 test_string("\"��\"", "��"); // NOTE: This is an emoji in strings()
47 test_string("\"\\\"\"", "\""); in strings()
48 test_string("\"'\"", "'"); in strings()
49 test_string("\"\"", ""); in strings()
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/syn-2.0.55/tests/
H A Dtest_lit.rs29 fn test_string(s: &str, value: &str) { in strings() function
35 test_string(&again, value); in strings()
42 test_string("\"a\"", "a"); in strings()
43 test_string("\"\\n\"", "\n"); in strings()
44 test_string("\"\\r\"", "\r"); in strings()
45 test_string("\"\\t\"", "\t"); in strings()
46 test_string("\"��\"", "��"); // NOTE: This is an emoji in strings()
47 test_string("\"\\\"\"", "\""); in strings()
48 test_string("\"'\"", "'"); in strings()
49 test_string("\"\"", ""); in strings()
[all …]
/aosp_15_r20/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 …]
/aosp_15_r20/external/cronet/third_party/libc++/src/test/libcxx/strings/basic.string/
H A Dsizeof.compile.pass.cpp46 using test_string = std::basic_string<CharT, std::char_traits<CharT>, test_allocator<CharT> >; typedef
55 static_assert(sizeof(test_string<char>) == 32, "");
62 static_assert(sizeof(test_string<wchar_t>) == 32, "");
67 static_assert(sizeof(test_string<wchar_t>) == 32, "");
77 static_assert(sizeof(test_string<char8_t>) == 32, "");
86 static_assert(sizeof(test_string<char16_t>) == 32, "");
87 static_assert(sizeof(test_string<char32_t>) == 32, "");
96 static_assert(sizeof(test_string<char>) == 24, "");
103 static_assert(sizeof(test_string<wchar_t>) == 24, "");
108 static_assert(sizeof(test_string<wchar_t>) == 24, "");
[all …]
H A Dalignof.compile.pass.cpp48 using test_string = std::basic_string<CharT, std::char_traits<CharT>, test_allocator<CharT>>; typedef
57 static_assert(alignof(test_string<char>) == 8, "");
64 static_assert(alignof(test_string<wchar_t>) == 8, "");
69 static_assert(alignof(test_string<wchar_t>) == 8, "");
79 static_assert(alignof(test_string<char8_t>) == 8, "");
88 static_assert(alignof(test_string<char16_t>) == 8, "");
89 static_assert(alignof(test_string<char32_t>) == 8, "");
98 static_assert(alignof(test_string<char>) == 4, "");
105 static_assert(alignof(test_string<wchar_t>) == 4, "");
110 static_assert(alignof(test_string<wchar_t>) == 4, "");
[all …]
/aosp_15_r20/external/libchrome/mojo/public/cpp/system/tests/
H A 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 …]
/aosp_15_r20/external/python/cpython2/Lib/test/
Dtest_struct.py437 test_string = 'Reykjavik rocks, eow!'
443 s.pack_into(writable_buf, 0, test_string)
444 from_buf = tobytes(writable_buf)[:len(test_string)]
445 self.assertEqual(from_buf, test_string)
448 s.pack_into(writable_buf, 10, test_string)
449 from_buf = tobytes(writable_buf)[:len(test_string)+10]
450 self.assertEqual(from_buf, test_string[:10] + test_string)
455 test_string)
457 test_string)
474 test_string = 'Reykjavik rocks, eow!'
[all …]
/aosp_15_r20/external/liburing/test/
H A Druntests.sh71 local test_string="$test_name"
77 test_string="$test_name $dev"
85 local dmesg_marker="Running test $test_string:"
90 printf "Running test %-55s" "$test_string"
97 SKIPPED="$SKIPPED <$test_string>"
114 TIMED_OUT="$TIMED_OUT <$test_string>"
117 FAILED="$FAILED <$test_string>"
121 FAILED="$FAILED <$test_string>"
/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_struct.py397 test_string = b'abcd01234'
401 data = cls(test_string)
407 for i in range(6, len(test_string) + 1):
410 data = cls(test_string)
416 for i in range(6, len(test_string) + 1):
420 self.assertEqual(s.unpack_from(buffer=test_string, offset=2),
424 test_string = b'Reykjavik rocks, eow!'
430 s.pack_into(writable_buf, 0, test_string)
431 from_buf = writable_buf.tobytes()[:len(test_string)]
432 self.assertEqual(from_buf, test_string)
[all …]
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/strings/basic.string/string.ops/string.accessors/
H A 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()
/aosp_15_r20/external/openscreen/discovery/dnssd/public/
H A Ddns_sd_instance_unittest.cc56 std::string test_string = "start"; in TEST() local
58 test_string.append(std::string(1, ch)); in TEST()
61 EXPECT_FALSE(IsInstanceValid(test_string)); in TEST()
164 std::string test_string = "start"; in TEST() local
166 test_string.append(std::string(1, ch)); in TEST()
169 EXPECT_FALSE(IsDomainValid(test_string)); in TEST()
205 std::string test_string = "start"; in TEST() local
207 test_string.append(std::string(1, ch)); in TEST()
210 EXPECT_FALSE(IsSubtypeValid(test_string)); in TEST()
/aosp_15_r20/external/tensorflow/tensorflow/core/platform/
H A Dsubprocess_test.cc96 const char test_string[] = "hello_world"; in TEST_F() local
98 {EchoArgv1Program(), test_string}); in TEST_F()
107 EXPECT_EQ(test_string, out); in TEST_F()
113 const char test_string[] = "hello_world"; in TEST_F() local
115 {EchoArgv1Program(), test_string}); in TEST_F()
127 const char test_string[] = "muh_failure!"; in TEST_F() local
129 {StdErrProgram(), test_string}); in TEST_F()
139 EXPECT_EQ(test_string, err); in TEST_F()
144 const char test_string[] = "muh_failure!"; in TEST_F() local
146 {StdErrProgram(), test_string}); in TEST_F()
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/strings/basic.string/string.cons/
H A 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()
H A Dcopy_alloc.pass.cpp92 TEST_CONSTEXPR_CXX20 void test_string(const Alloc& a) { in test_string() function
100 test_string(std::allocator<char>()); in test()
101 test_string(test_allocator<char>()); in test()
102 test_string(test_allocator<char>(3)); in test()
104 test_string(min_allocator<char>()); in test()
105 test_string(safe_allocator<char>()); in test()
/aosp_15_r20/external/cronet/third_party/apache-portable-runtime/src/test/
H A Dtestmmap.c38 static char test_string[256]; /* read from the datafile */ variable
75 apr_size_t nbytes = sizeof(test_string) - 1; in read_expected_contents()
77 rv = apr_file_read(thefile, test_string, &nbytes); in read_expected_contents()
79 test_string[nbytes] = '\0'; in read_expected_contents()
80 thisfsize = strlen(test_string); in read_expected_contents()
119 ABTS_STR_NEQUAL(tc, themmap->mm, test_string, thisfsize); in test_mmap_contents()
141 ABTS_STR_NEQUAL(tc, addr, test_string + 5, thisfsize-5); in test_mmap_offset()
/aosp_15_r20/art/libartbase/base/
H A Dhash_set_test.cc70 const std::string test_string = "hello world 1234"; in TEST_F() local
73 hash_set.insert(test_string); in TEST_F()
74 auto it = hash_set.find(test_string); in TEST_F()
75 ASSERT_EQ(*it, test_string); in TEST_F()
80 it = hash_set.find(test_string); in TEST_F()
360 const char* test_string = "test string"; in TEST_F() local
362 HashSet<std::string>::iterator it = hash_set.insert(test_string).first; in TEST_F()
369 const char* test_string = "test string"; in TEST_F() local
371 HashSet<std::string>::iterator insert_pos = hash_set.insert(test_string).first; in TEST_F()
372 HashSet<std::string>::iterator it = hash_set.find(std::string_view(test_string)); in TEST_F()
[all …]
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/strings/basic.string/string.capacity/
H A 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()
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/strings/basic.string/string.require/
H A 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>>...16