Home
last modified time | relevance | path

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

123

/external/tensorflow/tensorflow/core/lib/wav/
Dwav_io_test.cc243 string test_string(test_data.begin(), test_data.end()); in TEST() local
246 TF_EXPECT_OK(ExpectText(test_string, "Expected", &offset)); in TEST()
250 Status expect_status = ExpectText(test_string, "Unexpected", &offset); in TEST()
254 TF_EXPECT_OK(ExpectText(test_string, "Exp", &offset)); in TEST()
256 TF_EXPECT_OK(ExpectText(test_string, "ected", &offset)); in TEST()
258 expect_status = ExpectText(test_string, "foo", &offset); in TEST()
266 string test_string(test_data.begin(), test_data.end()); in TEST() local
270 TF_EXPECT_OK(ReadString(test_string, 2, &read_value, &offset)); in TEST()
274 TF_EXPECT_OK(ReadString(test_string, 6, &read_value, &offset)); in TEST()
278 Status read_status = ReadString(test_string, 3, &read_value, &offset); in TEST()
[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/tensorflow/tensorflow/python/kernel_tests/
Dsubstr_op_test.py43 test_string = {
53 substr_op = string_ops.substr(test_string, position, length, unit=unit)
66 test_string = {
73 substr_op = string_ops.substr(test_string, position, length, unit=unit)
79 test_string = {
85 substr_op = string_ops.substr(test_string, position, length, unit=unit)
88 self.assertAllEqual(substr, test_string)
91 test_string = {
97 substr_op = string_ops.substr(test_string, position, length, unit=unit)
100 self.assertAllEqual(substr, test_string)
[all …]
/external/libxkbcommon/xkbcommon/test/
Dkeysym.c28 test_string(const char *string, xkb_keysym_t expected) in test_string() function
87 assert(test_string("Undo", 0xFF65)); in main()
88 assert(test_string("ThisKeyShouldNotExist", XKB_KEY_NoSymbol)); in main()
89 assert(test_string("XF86_Switch_VT_5", 0x1008FE05)); in main()
90 assert(test_string("VoidSymbol", 0xFFFFFF)); in main()
91 assert(test_string("U4567", 0x1004567)); in main()
92 assert(test_string("0x10203040", 0x10203040)); in main()
93 assert(test_string("a", 0x61)); in main()
94 assert(test_string("A", 0x41)); in main()
95 assert(test_string("ch", 0xfea0)); in main()
[all …]
/external/ltp/scripts/tests/
Dtest_abspath.sh65 test_string=${i%:*}
68 result=$(_abspath "$test_string")
71 result_s="matches expected string _abspath(${test_string}) => $result == $expected_string)"
74 result_s="doesn't match expected string _abspath(${test_string}) => $result != $expected_string)"
88 test_string='""'
92 result_s="matches expected string abspath.sh ${test_string} => $result == $expected_string)"
95 result_s="doesn't match expected string abspath.sh ${test_string} => $result != $expected_string)"
105 test_string="\"\" ."
109 result_s="matches expected string abspath.sh ${test_string} => $result == $expected_string)"
112 result_s="doesn't match expected string abspath.sh ${test_string} => $result != $expected_string)"
/external/tensorflow/tensorflow/compiler/xla/
Ddebug_options_parsers_test.cc30 string test_string = "aa=bb,cc,dd=,ee=ff=gg"; in TEST() local
31 parse_xla_backend_extra_options(&test_map, test_string); in TEST()
42 string test_string = "OP_OUTPUTS=5,10:add,dot"; in TEST() local
43 EXPECT_TRUE(parse_xla_reduce_precision_option(&proto, test_string)); in TEST()
57 string test_string = "OP_OUTPUTS=5,10:add,dot;"; in TEST() local
58 EXPECT_TRUE(parse_xla_reduce_precision_option(&proto, test_string)); in TEST()
72 string test_string = "UNFUSED_OP_OUTPUTS=5,10:;foo,bar/baz"; in TEST() local
73 EXPECT_TRUE(parse_xla_reduce_precision_option(&proto, test_string)); in TEST()
85 string test_string = "UNFUSED_OP_OUTPUTS=5,10:subtract;foo,bar/baz"; in TEST() local
86 EXPECT_TRUE(parse_xla_reduce_precision_option(&proto, test_string)); 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/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 …]
/external/python/cpython3/Lib/test/
Dtest_struct.py393 test_string = b'abcd01234'
397 data = cls(test_string)
403 for i in range(6, len(test_string) + 1):
406 data = cls(test_string)
412 for i in range(6, len(test_string) + 1):
416 self.assertEqual(s.unpack_from(buffer=test_string, offset=2),
420 test_string = b'Reykjavik rocks, eow!'
426 s.pack_into(writable_buf, 0, test_string)
427 from_buf = writable_buf.tobytes()[:len(test_string)]
428 self.assertEqual(from_buf, test_string)
[all …]
/external/u-boot/test/dm/
Dvideo.c147 …const char *test_string = "Well\b\b\b\bxhe is\r \n\ta very \amodest \bman\n\t\tand Has much to\b\… in dm_test_video_chars() local
152 vidconsole_put_string(con, test_string); in dm_test_video_chars()
333 …const char *test_string = "Criticism may not be agreeable, but it is necessary. It fulfils the sam… in dm_test_video_truetype() local
337 vidconsole_put_string(con, test_string); in dm_test_video_truetype()
349 …const char *test_string = "Criticism may not be agreeable, but it is necessary. It fulfils the sam… in dm_test_video_truetype_scroll() local
358 vidconsole_put_string(con, test_string); in dm_test_video_truetype_scroll()
370 …const char *test_string = "...Criticism may or may\b\b\b\b\b\bnot be agreeable, but seldom it is n… in dm_test_video_truetype_bs() local
379 vidconsole_put_string(con, test_string); in dm_test_video_truetype_bs()
/external/grpc-grpc/test/cpp/end2end/
Dclient_callback_end2end_test.cc70 grpc::string test_string(""); in SendRpcs() local
76 test_string += "Hello world. "; in SendRpcs()
77 request.set_message(test_string); in SendRpcs()
109 grpc::string test_string(""); in SendRpcsGeneric() local
116 test_string += "Hello world. "; in SendRpcsGeneric()
117 request.set_message(test_string); in SendRpcsGeneric()
/external/toolchain-utils/cwp/performance/
Dexperiment_gen.py109 test_string = str(freq) + 'Freq'
110 experiment_file += EXPERIMENT % (test_string, bench_iters, test_iters,
115 test_string = str(period) + 'Period'
117 test_string, bench_iters, test_iters, '-c %s' % period, '' if
/external/autotest/site_utils/lxc/
Dzygote_unittest.py121 test_string = 'jackdaws love my big sphinx of quartz.'
124 f.write(test_string)
141 self.assertEqual(test_string, test_output)
200 test_string = zygote.attach_run('cat %s' % dst).stdout
201 self.assertEquals(control_string, test_string)
220 test_string = zygote.attach_run('cat %s' % test_file).stdout
221 self.assertEquals(control_string, test_string)
Dcontainer_unittest.py237 test_string = container.attach_run('cat %s' % dst).stdout
238 self.assertEquals(control_string, test_string)
257 test_string = container.attach_run('cat %s' % test_file).stdout
258 self.assertEquals(control_string, test_string)
/external/libcups/cups/
Dtestlang.c31 static int test_string(cups_lang_t *language, const char *msgid);
85 errors += test_string(language, "No"); in main()
86 errors += test_string(language, "Yes"); in main()
260 test_string(cups_lang_t *language, /* I - Language */ in test_string() function
/external/tensorflow/tensorflow/core/util/
Dmemmapped_file_system_test.cc152 const string test_string = "bla-bla-bla"; in TEST() local
153 TF_ASSERT_OK(writable_file->Append(test_string)); in TEST()
157 EXPECT_EQ(test_string.length(), file_length); in TEST()
160 EXPECT_EQ(test_string.length(), stat.length); in TEST()
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_formatparagraph.py192 test_string = (
195 result = fp.reformat_comment(test_string, 70, " ")
249 test_string = ( variable in FormatEventTest
293 text.insert('1.0', self.test_string)
305 text.insert('1.0', self.test_string)
/external/chromium-trace/catapult/devil/devil/utils/
Dcmd_helper_test.py35 test_string = 'hello $TEST_VAR'
36 cmd = 'TEST_VAR=world; echo %s' % cmd_helper.SingleQuote(test_string)
37 self.assertEquals(test_string,
56 test_string = 'hello $TEST_VAR'
57 cmd = 'TEST_VAR=world; echo %s' % cmd_helper.DoubleQuote(test_string)
/external/libbrillo/brillo/
Dsecure_blob_unittest.cc198 std::string test_string("Test String"); in TEST_F() local
199 SecureBlob blob = SecureBlob(test_string.begin(), test_string.end()); in TEST_F()
200 EXPECT_EQ(blob.size(), test_string.length()); in TEST_F()
202 EXPECT_EQ(test_string.compare(result_string), 0); in TEST_F()
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_paragraph.py193 test_string = (
196 result = pg.reformat_comment(test_string, 70, " ")
250 test_string = ( variable in FormatEventTest
296 text.insert('1.0', self.test_string)
308 text.insert('1.0', self.test_string)
/external/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()
/external/selinux/libsemanage/tests/
Dtest_utilities.c242 const char *test_string = "abaababbaaaba"; in test_semanage_str_count() local
244 CU_ASSERT_EQUAL(semanage_str_count(test_string, 'z'), 0); in test_semanage_str_count()
245 CU_ASSERT_EQUAL(semanage_str_count(test_string, 'a'), 8); in test_semanage_str_count()
246 CU_ASSERT_EQUAL(semanage_str_count(test_string, 'b'), 5); in test_semanage_str_count()
/external/webrtc/webrtc/base/
Dbitbuffer_unittest.cc302 char test_string[] = "my precious"; in TEST() local
305 for (size_t i = 0; i < arraysize(test_string); ++i) { in TEST()
306 EXPECT_TRUE(buffer.WriteExponentialGolomb(test_string[i])); in TEST()
309 for (size_t i = 0; i < arraysize(test_string); ++i) { in TEST()
313 EXPECT_EQ(test_string[i], static_cast<char>(val)); in TEST()
/external/autotest/client/bin/
Dfsinfo_unittest.py102 test_string = '-q -b 1234 -O fdasfa,fdasfdas -l adfas -k -L'
103 result = fsinfo.opt_string2dict(test_string)
/external/libchrome/third_party/jinja2/
Dtests.py77 def test_string(value): function
151 'string': test_string,

123