Lines Matching refs:eq
28 eq = self.assertEqual
29 eq(r("abc"), "'abc'")
30 eq(r("abcdefghijklmnop"),"'abcdefghijklmnop'")
34 eq(r(s), expected)
36 eq(r("\"'"), repr("\"'"))
39 eq(r(s), expected)
42 eq = self.assertEqual
43 eq(r((1,)), "(1,)")
46 eq(r(t3), "(1, 2, 3)")
51 eq(r2.repr(t3), expected)
57 eq = self.assertEqual
59 eq(r(()), "()")
60 eq(r((1,)), "(1,)")
61 eq(r((1, 2, 3)), "(1, 2, 3)")
62 eq(r((1, 2, 3, 4, 5, 6)), "(1, 2, 3, 4, 5, 6)")
63 eq(r((1, 2, 3, 4, 5, 6, 7)), "(1, 2, 3, 4, 5, 6, ...)")
66 eq(r([]), "[]")
67 eq(r([1]), "[1]")
68 eq(r([1, 2, 3]), "[1, 2, 3]")
69 eq(r([1, 2, 3, 4, 5, 6]), "[1, 2, 3, 4, 5, 6]")
70 eq(r([1, 2, 3, 4, 5, 6, 7]), "[1, 2, 3, 4, 5, 6, ...]")
73 eq(r(set([])), "set()")
74 eq(r(set([1])), "{1}")
75 eq(r(set([1, 2, 3])), "{1, 2, 3}")
76 eq(r(set([1, 2, 3, 4, 5, 6])), "{1, 2, 3, 4, 5, 6}")
77 eq(r(set([1, 2, 3, 4, 5, 6, 7])), "{1, 2, 3, 4, 5, 6, ...}")
80 eq(r(frozenset([])), "frozenset()")
81 eq(r(frozenset([1])), "frozenset({1})")
82 eq(r(frozenset([1, 2, 3])), "frozenset({1, 2, 3})")
83 eq(r(frozenset([1, 2, 3, 4, 5, 6])), "frozenset({1, 2, 3, 4, 5, 6})")
84 eq(r(frozenset([1, 2, 3, 4, 5, 6, 7])), "frozenset({1, 2, 3, 4, 5, 6, ...})")
87 eq(r(deque([1, 2, 3, 4, 5, 6, 7])), "deque([1, 2, 3, 4, 5, 6, ...])")
90 eq(r({}), "{}")
92 eq(r(d), "{'alice': 1, 'bob': 2, 'charles': 3, 'dave': 4}")
94 eq(r(d), "{'alice': 1, 'arthur': 1, 'bob': 2, 'charles': 3, ...}")
97 eq(r(array('i')), "array('i')")
98 eq(r(array('i', [1])), "array('i', [1])")
99 eq(r(array('i', [1, 2])), "array('i', [1, 2])")
100 eq(r(array('i', [1, 2, 3])), "array('i', [1, 2, 3])")
101 eq(r(array('i', [1, 2, 3, 4])), "array('i', [1, 2, 3, 4])")
102 eq(r(array('i', [1, 2, 3, 4, 5])), "array('i', [1, 2, 3, 4, 5])")
103 eq(r(array('i', [1, 2, 3, 4, 5, 6])),
107 eq = self.assertEqual
108 eq(r({1}), "{1}")
109 eq(r({1, 2, 3}), "{1, 2, 3}")
110 eq(r({1, 2, 3, 4, 5, 6}), "{1, 2, 3, 4, 5, 6}")
111 eq(r({1, 2, 3, 4, 5, 6, 7}), "{1, 2, 3, 4, 5, 6, ...}")
114 eq = self.assertEqual
115 eq(r(frozenset({1})), "frozenset({1})")
116 eq(r(frozenset({1, 2, 3})), "frozenset({1, 2, 3})")
117 eq(r(frozenset({1, 2, 3, 4, 5, 6})), "frozenset({1, 2, 3, 4, 5, 6})")
118 eq(r(frozenset({1, 2, 3, 4, 5, 6, 7})), "frozenset({1, 2, 3, 4, 5, 6, ...})")
121 eq = self.assertEqual
122 eq(r(123), repr(123))
123 eq(r(123), repr(123))
124 eq(r(1.0/3), repr(1.0/3))
128 eq(r(n), expected)
131 eq = self.assertEqual
133 eq(r(i1), repr(i1))
137 eq(r(i2), expected)
140 eq(r(i3), ("<ClassWithFailingRepr instance at %#x>"%id(i3)))
153 eq = self.assertEqual
155 eq(repr(hash), '<built-in function hash>')
161 eq = self.assertEqual
162 eq(repr(range(1)), 'range(0, 1)')
163 eq(repr(range(1, 2)), 'range(1, 2)')
164 eq(repr(range(1, 4, 3)), 'range(1, 4, 3)')
167 eq = self.assertEqual
169 eq(r([[[[[[[]]]]]]]), "[[[[[[[]]]]]]]")
170 eq(r([[[[[[[[]]]]]]]]), "[[[[[[[...]]]]]]]")
172 eq(r(nestedTuple(6)), "(((((((),),),),),),)")
173 eq(r(nestedTuple(7)), "(((((((...),),),),),),)")
175 eq(r({ nestedTuple(5) : nestedTuple(5) }),
177 eq(r({ nestedTuple(6) : nestedTuple(6) }),
180 eq(r([[[[[[{}]]]]]]), "[[[[[[{}]]]]]]")
181 eq(r([[[[[[[{}]]]]]]]), "[[[[[[[...]]]]]]]")
195 eq = self.assertEqual
197 eq(repr(dict.items), "<method 'items' of 'dict' objects>")
288 eq = self.assertEqual
295 eq(repr(foo.foo),
329 eq = self.assertEqual