def test_list_nested_dtype(): dt = ListDtype(ListDtype("int32")) expect = ListDtype("int32") got = dt.element_type assert expect == got
def test_list_dtype_eq(): lhs = ListDtype("int32") rhs = ListDtype("int32") assert lhs == rhs rhs = ListDtype("int64") assert lhs != rhs