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

Function test_cast_identities

python/pyarrow/tests/test_array.py:2438–2440  ·  view source on GitHub ↗
(ty, values)

Source from the content-addressed store, hash-verified

2436 (pa.binary(3), [b'abc', b'bcd', b'cde'])
2437])
2438def test_cast_identities(ty, values):
2439 arr = pa.array(values, type=ty)
2440 assert arr.cast(ty).equals(arr)
2441
2442
2443pickle_test_parametrize = pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
arrayMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected