

def test_drop_while(self, space):
    w_res = space.execute('return [1, 2, 3, 4, 5, 0].drop_while { |i| i < 3 }')
    assert (w_res.unwrap(space, w_res) == [3, 4, 5, 0])
    w_res = space.execute('return [1, 2, 3].drop_while { |i| i == 0 } ')
    assert (self.unwrap(space, w_res) == [1, 2, 3])
    w_res = space.execute('return [].drop_while { |i| i > 3 }')
    assert (self.unwrap(space, w_res) == [])

dataset/ETHPy150Open topazproject/topaz/tests/modules/test_enumerable.py TestEnumberable.test_drop_while/VarMisuse@23/65 `self`->`w_res`