コード例 #1
0
ファイル: test_python_compute.py プロジェクト: jcrist/blaze
def test_reduce_by_funcs():
    e = summary(number=t.id.max(), sum=t.amount.sum())
    b = by(t, e)
    assert reduce_by_funcs(b)[2]([1,2,3], [4,5,6]) == (1, 7)
コード例 #2
0
ファイル: test_python_compute.py プロジェクト: vitan/blaze
def test_reduce_by_funcs():
    e = summary(number=t.id.max(), sum=t.amount.sum())
    b = by(t, e)
    assert reduce_by_funcs(b)[2]([1, 2, 3], [4, 5, 6]) == (1, 7)