

def test_drop(self, space):
    w_res = space.execute('return [0, 1, 2, 3, 4, 5, 6, 7].drop 3')
    assert (self.unwrap(space, w_res) == [3, 4, 5, 6, 7])
    w_res = space.execute('return [].drop 3')
    assert (self.unwrap(space, w_res) == [])
    w_res = space.execute('return [1, 2, 3].drop 3')
    assert (self.unwrap(space, w_res) == [])
    with self.raises(space, 'ArgumentError', 'attempt to drop negative size'):
        space.execute('return [0, 1, 2, 3, 4, 5, 6, 7].drop -3')

dataset/ETHPy150Open topazproject/topaz/tests/modules/test_enumerable.py TestEnumberable.test_drop/original