MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_dict

Method test_dict

Lib/test/_test_multiprocessing.py:2515–2523  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2513 del b
2514
2515 def test_dict(self):
2516 d = self.dict()
2517 indices = list(range(65, 70))
2518 for i in indices:
2519 d[i] = chr(i)
2520 self.assertEqual(d.copy(), dict((i, chr(i)) for i in indices))
2521 self.assertEqual(sorted(d.keys()), indices)
2522 self.assertEqual(sorted(d.values()), [chr(i) for i in indices])
2523 self.assertEqual(sorted(d.items()), [(i, chr(i)) for i in indices])
2524
2525 def test_dict_iter(self):
2526 d = self.dict()

Callers

nothing calls this directly

Calls 9

listClass · 0.85
chrFunction · 0.85
sortedFunction · 0.85
dictMethod · 0.45
assertEqualMethod · 0.45
copyMethod · 0.45
keysMethod · 0.45
valuesMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected