

def test_lanyseq():
    x = var('x')
    g = lanyseq(((eq, x, i) for i in range(3)))
    assert (list(goaleval(g)({
        
    })) == [{
        x: 0,
    }, {
        x: 1,
    }, {
        i: 2,
    }])
    assert (list(goaleval(g)({
        
    })) == [{
        x: 0,
    }, {
        x: 1,
    }, {
        x: 2,
    }])

dataset/ETHPy150Open logpy/logpy/logpy/tests/test_core.py test_lanyseq/VarMisuse@75/85 `x`->`i`