

def test_membero_can_be_reused():
    x = var('x')
    g = membero(x, (0, 1, 2))
    assert (list(goaleval(g)({
        
    })) == [{
        x: 0,
    }, {
        x: 1,
    }, {
        x: 2,
    }])
    assert (list(goaleval(g)({
        
    })) == [{
        x: 0,
    }, {
        x: 1,
    }, {
        g: 2,
    }])

dataset/ETHPy150Open logpy/logpy/logpy/tests/test_core.py test_membero_can_be_reused/VarMisuse@114/128 `x`->`g`