Home
last modified time | relevance | path

Searched refs:teststr (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_popen2.py36 teststr = "ab cd\n" variable in Popen2Test
40 expected = teststr.strip()
61 def validate_output(self, teststr, expected_out, r, w, e=None): argument
62 w.write(teststr)
66 (teststr, got))
74 self.validate_output(self.teststr, self.expected, r, w)
79 self.validate_output(self.teststr, self.expected, r, w, e)
82 self.validate_output(self.teststr, self.expected, r, w, e)
88 self.validate_output(self.teststr, self.expected, r, w)
90 w, r = os.popen2(["echo", self.teststr])
[all …]
Dpickletester.py1748 teststr = "def f(): {0}.dumps(0)".format(self.module.__name__)
1749 exec teststr in {'__builtins__': builtins}, d
/external/kmod/testsuite/
Dtest-util.c121 struct teststr { in test_underscores() struct
124 } teststr[] = { in test_underscores() local
134 for (iter = &teststr[0]; iter->val != NULL; iter++) { in test_underscores()
149 struct teststr { in test_path_ends_with_kmod_ext() struct
152 } teststr[] = { in test_path_ends_with_kmod_ext() local
167 for (iter = &teststr[0]; iter->val != NULL; iter++) { in test_path_ends_with_kmod_ext()
/external/minijail/
Dlibminijail_unittest.cc221 constexpr char teststr[] = "test\n"; in TEST() local
235 const size_t teststr_len = strlen(teststr); in TEST()
236 ssize_t write_ret = write(child_stdin, teststr, teststr_len); in TEST()
243 EXPECT_EQ(strcmp(buf, teststr), 0); in TEST()
277 char teststr[] = "test\n"; in TEST() local
278 size_t teststr_len = strlen(teststr); in TEST()
291 write_ret = write(child_stdin, teststr, teststr_len); in TEST()
297 EXPECT_EQ(strcmp(buf, teststr), 0); in TEST()
482 char teststr[] = "test\n"; in TEST() local
483 size_t teststr_len = strlen(teststr); in TEST()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DGlobalizationPreferences.java594 String teststr = result; in getDisplayName() local
598 teststr = result.substring(sidx+1, eidx); in getDisplayName()
600 if (teststr.length() == 2) { in getDisplayName()
603 char c = teststr.charAt(i); in getDisplayName()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/
DGlobalizationPreferences.java619 String teststr = result; in getDisplayName() local
623 teststr = result.substring(sidx+1, eidx); in getDisplayName()
625 if (teststr.length() == 2) { in getDisplayName()
628 char c = teststr.charAt(i); in getDisplayName()
/external/icu/icu4c/source/test/cintltst/
Dcitertst.c946 UChar teststr[500]; in TestSmallBuffer() local
954 teststr[count ++] = 0x300; in TestSmallBuffer()
957 teststr[count ++] = 0x31A; in TestSmallBuffer()
963 testiter = ucol_openElements(coll, teststr, 500, &status); in TestSmallBuffer()
Dcapitst.c454 UChar teststr[10]; in TestRuleBasedColl() local
512 teststr[0] = 0x0e40; in TestRuleBasedColl()
513 teststr[1] = 0x0e01; in TestRuleBasedColl()
514 teststr[2] = 0x0e2d; in TestRuleBasedColl()
525 iter1 = ucol_openElements(col1, teststr, 3, &status); in TestRuleBasedColl()
526 iter2 = ucol_openElements(col2, teststr, 3, &status); in TestRuleBasedColl()
/external/python/cpython3/Lib/test/
Dtest_imp.py66 for modname, encoding, teststr in self.test_strings:
69 self.assertEqual(teststr, mod.test)
Dtest_array.py160 teststr = "Bonne Journ\xe9e \U0002030a\U00020347"
169 a = array.array('u', teststr)
171 array.array, 'u', mformat_code, teststr.encode(encoding))
Dtest_smtplib.py68 teststr = "abc\n.jkl\rfoo\r\n..blue"
70 self.assertEqual(expected, smtplib.quotedata(teststr))
/external/python/cpython2/Lib/email/test/
Dtest_email.py1109 teststr = u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430'
1111 msg = MIMEText(teststr, _charset='utf-8')
1114 eq(msg.get_payload(decode=True), teststr.encode('utf-8'))
1117 teststr = u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430'
1118 self.assertRaises(UnicodeEncodeError, MIMEText, teststr)
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py1687 teststr = '\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430'
1689 msg = MIMEText(teststr, _charset='utf-8')
1692 eq(msg.get_payload(decode=True), teststr.encode('utf-8'))
1697 teststr = '\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430'
1698 self.assertRaises(UnicodeEncodeError, MIMEText, teststr)