Home
last modified time | relevance | path

Searched refs:eq (Results 1 – 25 of 3558) sorted by relevance

12345678910>>...143

/external/python/cpython2/Lib/test/
Dtest_base64.py9 eq = self.assertEqual
10 eq(base64.encodestring("www.python.org"), "d3d3LnB5dGhvbi5vcmc=\n")
11 eq(base64.encodestring("a"), "YQ==\n")
12 eq(base64.encodestring("ab"), "YWI=\n")
13 eq(base64.encodestring("abc"), "YWJj\n")
14 eq(base64.encodestring(""), "")
15 eq(base64.encodestring("abcdefghijklmnopqrstuvwxyz"
22 eq(base64.encodestring(bytearray('abc')), 'YWJj\n')
25 eq = self.assertEqual
26 eq(base64.decodestring("d3d3LnB5dGhvbi5vcmc=\n"), "www.python.org")
[all …]
Dtest_repr.py25 eq = self.assertEqual
26 eq(r("abc"), "'abc'")
27 eq(r("abcdefghijklmnop"),"'abcdefghijklmnop'")
31 eq(r(s), expected)
33 eq(r("\"'"), repr("\"'"))
36 eq(r(s), expected)
39 eq = self.assertEqual
40 eq(r((1,)), "(1,)")
43 eq(r(t3), "(1, 2, 3)")
48 eq(r2.repr(t3), expected)
[all …]
Dtest_gettext.py98 eq = self.assertEqual
100 eq(_('albatross'), 'albatross')
101 eq(_(u'mullusk'), 'bacon')
102 eq(_(r'Raymond Luxury Yach-t'), 'Throatwobbler Mangrove')
103 eq(_(ur'nudge nudge'), 'wink wink')
106 eq = self.assertEqual
108 eq(_("albatross"), 'albatross')
109 eq(_(u"mullusk"), 'bacon')
110 eq(_(r"Raymond Luxury Yach-t"), 'Throatwobbler Mangrove')
111 eq(_(ur"nudge nudge"), 'wink wink')
[all …]
Dtest_mhlib.py151 eq = self.assertEqual
152 eq(mh.getprofile('Editor'), 'emacs')
153 eq(mh.getprofile('not-set'), None)
154 eq(mh.getpath(), os.path.abspath(_mhpath))
155 eq(mh.getcontext(), 'inbox')
158 eq(mh.getcontext(), 'wide')
159 eq(readFile(os.path.join(_mhpath, 'context')),
165 eq(inbox.getfullname(),
167 eq(inbox.getsequencesfilename(),
169 eq(inbox.getmessagefilename(1),
[all …]
Dtest_mimetypes.py21 eq = self.assertEqual
22 eq(self.db.guess_type("foo.html"), ("text/html", None))
23 eq(self.db.guess_type("foo.tgz"), ("application/x-tar", "gzip"))
24 eq(self.db.guess_type("foo.tar.gz"), ("application/x-tar", "gzip"))
25 eq(self.db.guess_type("foo.tar.Z"), ("application/x-tar", "compress"))
26 eq(self.db.guess_type("foo.tar.bz2"), ("application/x-tar", "bzip2"))
27 eq(self.db.guess_type("foo.tar.xz"), ("application/x-tar", "xz"))
30 eq = self.assertEqual
32 eq(guess_type("data:,thisIsTextPlain"), ("text/plain", None))
33 eq(guess_type("data:;base64,thisIsTextPlain"), ("text/plain", None))
[all …]
/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py76 eq = self.assertEqual
78 eq(msg.get_all('cc'), ['ccc@zzz.org', 'ddd@zzz.org', 'eee@zzz.org'])
79 eq(msg.get_all('xx', 'n/a'), 'n/a')
82 eq = self.assertEqual
84 eq(msg.get_charset(), None)
87 eq(msg['mime-version'], '1.0')
88 eq(msg.get_content_type(), 'text/plain')
89 eq(msg['content-type'], 'text/plain; charset="iso-8859-1"')
90 eq(msg.get_param('charset'), 'iso-8859-1')
91 eq(msg['content-transfer-encoding'], 'quoted-printable')
[all …]
Dtest_email.py81 eq = self.assertEqual
83 eq(msg.get_all('cc'), ['ccc@zzz.org', 'ddd@zzz.org', 'eee@zzz.org'])
84 eq(msg.get_all('xx', 'n/a'), 'n/a')
87 eq = self.assertEqual
89 eq(msg.get_charset(), None)
92 eq(msg['mime-version'], '1.0')
93 eq(msg.get_content_type(), 'text/plain')
94 eq(msg['content-type'], 'text/plain; charset="iso-8859-1"')
95 eq(msg.get_param('charset'), 'iso-8859-1')
96 eq(msg['content-transfer-encoding'], 'quoted-printable')
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/
Derase_key.pass.cpp59 Eq eq = c.equal_range(1); in main() local
60 assert(std::distance(eq.first, eq.second) == 2); in main()
61 C::const_iterator k = eq.first; in main()
67 eq = c.equal_range(2); in main()
68 assert(std::distance(eq.first, eq.second) == 2); in main()
69 k = eq.first; in main()
75 eq = c.equal_range(3); in main()
76 assert(std::distance(eq.first, eq.second) == 1); in main()
77 k = eq.first; in main()
80 eq = c.equal_range(4); in main()
[all …]
Derase_range.pass.cpp46 Eq eq = c.equal_range(1); in main() local
47 assert(std::distance(eq.first, eq.second) == 2); in main()
48 k = eq.first; in main()
54 eq = c.equal_range(2); in main()
55 assert(std::distance(eq.first, eq.second) == 2); in main()
56 k = eq.first; in main()
62 eq = c.equal_range(3); in main()
63 assert(std::distance(eq.first, eq.second) == 1); in main()
64 k = eq.first; in main()
67 eq = c.equal_range(4); in main()
[all …]
Dinsert_init.pass.cpp45 Eq eq = c.equal_range(1); in main() local
46 assert(std::distance(eq.first, eq.second) == 2); in main()
47 C::iterator k = eq.first; in main()
53 eq = c.equal_range(2); in main()
54 assert(std::distance(eq.first, eq.second) == 2); in main()
55 k = eq.first; in main()
61 eq = c.equal_range(3); in main()
62 assert(std::distance(eq.first, eq.second) == 1); in main()
63 k = eq.first; in main()
66 eq = c.equal_range(4); in main()
[all …]
Dinsert_range.pass.cpp45 Eq eq = c.equal_range(1); in main() local
46 assert(std::distance(eq.first, eq.second) == 2); in main()
47 C::iterator k = eq.first; in main()
53 eq = c.equal_range(2); in main()
54 assert(std::distance(eq.first, eq.second) == 2); in main()
55 k = eq.first; in main()
61 eq = c.equal_range(3); in main()
62 assert(std::distance(eq.first, eq.second) == 1); in main()
63 k = eq.first; in main()
66 eq = c.equal_range(4); in main()
[all …]
Derase_const_iter.pass.cpp57 Eq eq = c.equal_range(1); in main() local
58 assert(std::distance(eq.first, eq.second) == 2); in main()
59 C::const_iterator k = eq.first; in main()
65 eq = c.equal_range(2); in main()
66 assert(std::distance(eq.first, eq.second) == 1); in main()
67 k = eq.first; in main()
70 eq = c.equal_range(3); in main()
71 assert(std::distance(eq.first, eq.second) == 1); in main()
72 k = eq.first; in main()
75 eq = c.equal_range(4); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/
Dinit.pass.cpp51 Eq eq = c.equal_range(1); in main() local
52 assert(std::distance(eq.first, eq.second) == 2); in main()
53 C::const_iterator i = eq.first; in main()
59 eq = c.equal_range(2); in main()
60 assert(std::distance(eq.first, eq.second) == 2); in main()
61 i = eq.first; in main()
68 eq = c.equal_range(3); in main()
69 assert(std::distance(eq.first, eq.second) == 1); in main()
70 i = eq.first; in main()
73 eq = c.equal_range(4); in main()
[all …]
Dassign_move.pass.cpp66 Eq eq = c.equal_range(1); in main() local
67 assert(std::distance(eq.first, eq.second) == 2); in main()
68 C::const_iterator i = eq.first; in main()
74 eq = c.equal_range(2); in main()
75 assert(std::distance(eq.first, eq.second) == 2); in main()
76 i = eq.first; in main()
83 eq = c.equal_range(3); in main()
84 assert(std::distance(eq.first, eq.second) == 1); in main()
85 i = eq.first; in main()
88 eq = c.equal_range(4); in main()
[all …]
Drange.pass.cpp55 Eq eq = c.equal_range(1); in main() local
56 assert(std::distance(eq.first, eq.second) == 2); in main()
57 C::const_iterator i = eq.first; in main()
63 eq = c.equal_range(2); in main()
64 assert(std::distance(eq.first, eq.second) == 2); in main()
65 i = eq.first; in main()
72 eq = c.equal_range(3); in main()
73 assert(std::distance(eq.first, eq.second) == 1); in main()
74 i = eq.first; in main()
77 eq = c.equal_range(4); in main()
[all …]
Dmove_alloc.pass.cpp63 Eq eq = c.equal_range(1); in main() local
64 assert(std::distance(eq.first, eq.second) == 2); in main()
65 C::const_iterator i = eq.first; in main()
71 eq = c.equal_range(2); in main()
72 assert(std::distance(eq.first, eq.second) == 2); in main()
73 i = eq.first; in main()
80 eq = c.equal_range(3); in main()
81 assert(std::distance(eq.first, eq.second) == 1); in main()
82 i = eq.first; in main()
85 eq = c.equal_range(4); in main()
[all …]
Drange_size_hash_equal_allocator.pass.cpp63 Eq eq = c.equal_range(1); in main() local
64 assert(std::distance(eq.first, eq.second) == 2); in main()
65 C::const_iterator i = eq.first; in main()
71 eq = c.equal_range(2); in main()
72 assert(std::distance(eq.first, eq.second) == 2); in main()
73 i = eq.first; in main()
80 eq = c.equal_range(3); in main()
81 assert(std::distance(eq.first, eq.second) == 1); in main()
82 i = eq.first; in main()
85 eq = c.equal_range(4); in main()
[all …]
Dinit_size_hash_equal_allocator.pass.cpp58 Eq eq = c.equal_range(1); in main() local
59 assert(std::distance(eq.first, eq.second) == 2); in main()
60 C::const_iterator i = eq.first; in main()
66 eq = c.equal_range(2); in main()
67 assert(std::distance(eq.first, eq.second) == 2); in main()
68 i = eq.first; in main()
75 eq = c.equal_range(3); in main()
76 assert(std::distance(eq.first, eq.second) == 1); in main()
77 i = eq.first; in main()
80 eq = c.equal_range(4); in main()
[all …]
Dassign_init.pass.cpp56 Eq eq = c.equal_range(1); in main() local
57 assert(std::distance(eq.first, eq.second) == 2); in main()
58 C::const_iterator i = eq.first; in main()
64 eq = c.equal_range(2); in main()
65 assert(std::distance(eq.first, eq.second) == 2); in main()
66 i = eq.first; in main()
73 eq = c.equal_range(3); in main()
74 assert(std::distance(eq.first, eq.second) == 1); in main()
75 i = eq.first; in main()
78 eq = c.equal_range(4); in main()
[all …]
Drange_size.pass.cpp58 Eq eq = c.equal_range(1); in main() local
59 assert(std::distance(eq.first, eq.second) == 2); in main()
60 C::const_iterator i = eq.first; in main()
66 eq = c.equal_range(2); in main()
67 assert(std::distance(eq.first, eq.second) == 2); in main()
68 i = eq.first; in main()
75 eq = c.equal_range(3); in main()
76 assert(std::distance(eq.first, eq.second) == 1); in main()
77 i = eq.first; in main()
80 eq = c.equal_range(4); in main()
[all …]
Dinit_size.pass.cpp54 Eq eq = c.equal_range(1); in main() local
55 assert(std::distance(eq.first, eq.second) == 2); in main()
56 C::const_iterator i = eq.first; in main()
62 eq = c.equal_range(2); in main()
63 assert(std::distance(eq.first, eq.second) == 2); in main()
64 i = eq.first; in main()
71 eq = c.equal_range(3); in main()
72 assert(std::distance(eq.first, eq.second) == 1); in main()
73 i = eq.first; in main()
76 eq = c.equal_range(4); in main()
[all …]
Dinit_size_hash.pass.cpp55 Eq eq = c.equal_range(1); in main() local
56 assert(std::distance(eq.first, eq.second) == 2); in main()
57 C::const_iterator i = eq.first; in main()
63 eq = c.equal_range(2); in main()
64 assert(std::distance(eq.first, eq.second) == 2); in main()
65 i = eq.first; in main()
72 eq = c.equal_range(3); in main()
73 assert(std::distance(eq.first, eq.second) == 1); in main()
74 i = eq.first; in main()
77 eq = c.equal_range(4); in main()
[all …]
Dinit_size_hash_equal.pass.cpp57 Eq eq = c.equal_range(1); in main() local
58 assert(std::distance(eq.first, eq.second) == 2); in main()
59 C::const_iterator i = eq.first; in main()
65 eq = c.equal_range(2); in main()
66 assert(std::distance(eq.first, eq.second) == 2); in main()
67 i = eq.first; in main()
74 eq = c.equal_range(3); in main()
75 assert(std::distance(eq.first, eq.second) == 1); in main()
76 i = eq.first; in main()
79 eq = c.equal_range(4); in main()
[all …]
Drange_size_hash_equal.pass.cpp61 Eq eq = c.equal_range(1); in main() local
62 assert(std::distance(eq.first, eq.second) == 2); in main()
63 C::const_iterator i = eq.first; in main()
69 eq = c.equal_range(2); in main()
70 assert(std::distance(eq.first, eq.second) == 2); in main()
71 i = eq.first; in main()
78 eq = c.equal_range(3); in main()
79 assert(std::distance(eq.first, eq.second) == 1); in main()
80 i = eq.first; in main()
83 eq = c.equal_range(4); in main()
[all …]
Drange_size_hash.pass.cpp60 Eq eq = c.equal_range(1); in main() local
61 assert(std::distance(eq.first, eq.second) == 2); in main()
62 C::const_iterator i = eq.first; in main()
68 eq = c.equal_range(2); in main()
69 assert(std::distance(eq.first, eq.second) == 2); in main()
70 i = eq.first; in main()
77 eq = c.equal_range(3); in main()
78 assert(std::distance(eq.first, eq.second) == 1); in main()
79 i = eq.first; in main()
82 eq = c.equal_range(4); in main()
[all …]

12345678910>>...143