

def test_dataset():
    ns = {
        't': df,
        'x': 10,
    }
    cache = dict()
    d = CachedDataset(ns, cache=d)
    assert (discover(d) == discover(ns))
    s = symbol('s', discover(d))
    (compute((s.x * 2), d) == 20)
    (cache == {
        (s.x * 2): 20,
    })

dataset/ETHPy150Open blaze/blaze/blaze/tests/test_cached.py test_dataset/VarMisuse@39/46 `cache`->`d`