MCPcopy Create free account
hub / github.com/apache/arrow / test_hashing

Function test_hashing

python/pyarrow/tests/test_scalars.py:179–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177
178
179def test_hashing():
180 # ARROW-640
181 values = list(range(500))
182 arr = pa.array(values + values)
183 set_from_array = set(arr)
184 assert isinstance(set_from_array, set)
185 assert len(set_from_array) == 500
186
187
188def test_hashing_struct_scalar():

Callers

nothing calls this directly

Calls 3

listFunction · 0.85
lenFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected