(offset)
| 980 | |
| 981 | @pytest.mark.parametrize("offset", (0, 1)) |
| 982 | def test_dictionary_from_buffers(offset): |
| 983 | a = pa.array(["one", "two", "three", "two", "one"]).dictionary_encode() |
| 984 | b = pa.DictionaryArray.from_buffers(a.type, len(a)-offset, |
| 985 | a.indices.buffers(), a.dictionary, |
| 986 | offset=offset) |
| 987 | assert a[offset:] == b |
| 988 | |
| 989 | |
| 990 | @pytest.mark.numpy |