コード例 #1
0
ファイル: test_types.py プロジェクト: xingzhicn/arrow
def test_is_list():
    a = pa.list_(pa.int32())
    b = pa.large_list(pa.int32())

    assert types.is_list(a)
    assert not types.is_large_list(a)
    assert types.is_large_list(b)
    assert not types.is_list(b)

    assert not types.is_list(pa.int32())
コード例 #2
0
ファイル: test_types.py プロジェクト: wiltonlazary/arrow-1
def test_is_list():
    a = pa.list_(pa.int32())
    b = pa.large_list(pa.int32())
    c = pa.list_(pa.int32(), 3)

    assert types.is_list(a)
    assert not types.is_large_list(a)
    assert not types.is_fixed_size_list(a)
    assert types.is_large_list(b)
    assert not types.is_list(b)
    assert not types.is_fixed_size_list(b)
    assert types.is_fixed_size_list(c)
    assert not types.is_list(c)
    assert not types.is_large_list(c)

    assert not types.is_list(pa.int32())