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

Method test_remove

Lib/test/test_array.py:1844–1852  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

1842
1843 @support.bigmemtest(_2G, memuse=2.125)
1844 def test_remove(self, size):
1845 example = self.example(size)
1846 example.remove(0)
1847 self.assertEqual(len(example), size+3)
1848 self.assertEqual(example[0], 1)
1849 example.remove(10)
1850 self.assertEqual(len(example), size+2)
1851 self.assertEqual(example[size], 9)
1852 self.assertEqual(example[size+1], 11)
1853
1854 @support.bigmemtest(_2G, memuse=2.125)
1855 def test_reverse(self, size):

Callers

nothing calls this directly

Calls 4

exampleMethod · 0.95
lenFunction · 0.85
removeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected