

def test_map(self, space):
    w_res = space.execute('return [1, 2, 3, 4, 5].map { |i| i + 1 }')
    assert (space.unwrap(space, w_res) == range(2, 7))
    w_res = space.execute('return [1, 2, 3, 4, 5].collect { |i| i + 1 }')
    assert (self.unwrap(space, w_res) == range(2, 7))

dataset/ETHPy150Open topazproject/topaz/tests/modules/test_enumerable.py TestEnumberable.test_map/VarMisuse@23/59 `self`->`space`