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

Method test_frozenset

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

Source from the content-addressed store, hash-verified

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
148 eq(r(frozenset({1})), "frozenset({1})")
149 eq(r(frozenset({1, 2, 3})), "frozenset({1, 2, 3})")
150 eq(r(frozenset({1, 2, 3, 4, 5, 6})), "frozenset({1, 2, 3, 4, 5, 6})")
151 eq(r(frozenset({1, 2, 3, 4, 5, 6, 7})), "frozenset({1, 2, 3, 4, 5, 6, ...})")
152
153 def test_numbers(self):
154 for x in [123, 1.0 / 3]:

Callers

nothing calls this directly

Calls 2

eqFunction · 0.85
rFunction · 0.50

Tested by

no test coverage detected