MCPcopy Index your code
hub / github.com/python/cpython / test_set_literal

Method test_set_literal

Lib/test/test_reprlib.py:139–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 "array('i', [1, 2, 3, 4, 5, ...])")
138
139 def test_set_literal(self):
140 eq = self.assertEqual
141 eq(r({1}), "{1}")
142 eq(r({1, 2, 3}), "{1, 2, 3}")
143 eq(r({1, 2, 3, 4, 5, 6}), "{1, 2, 3, 4, 5, 6}")
144 eq(r({1, 2, 3, 4, 5, 6, 7}), "{1, 2, 3, 4, 5, 6, ...}")
145
146 def test_frozenset(self):
147 eq = self.assertEqual

Callers

nothing calls this directly

Calls 2

eqFunction · 0.85
rFunction · 0.50

Tested by

no test coverage detected