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

Function test_cast_signed_to_unsigned

python/pyarrow/tests/test_array.py:2020–2029  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2018
2019@pytest.mark.numpy
2020def test_cast_signed_to_unsigned():
2021 safe_cases = [
2022 (np.array([0, 1, 2, 3], dtype='i1'), pa.uint8(),
2023 np.array([0, 1, 2, 3], dtype='u1'), pa.uint8()),
2024 (np.array([0, 1, 2, 3], dtype='i2'), pa.uint16(),
2025 np.array([0, 1, 2, 3], dtype='u2'), pa.uint16())
2026 ]
2027
2028 for case in safe_cases:
2029 _check_cast_case(case)
2030
2031
2032def test_cast_from_null():

Callers

nothing calls this directly

Calls 2

_check_cast_caseFunction · 0.85
arrayMethod · 0.45

Tested by

no test coverage detected