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:1905–1914  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1903
1904@pytest.mark.numpy
1905def test_cast_signed_to_unsigned():
1906 safe_cases = [
1907 (np.array([0, 1, 2, 3], dtype='i1'), pa.uint8(),
1908 np.array([0, 1, 2, 3], dtype='u1'), pa.uint8()),
1909 (np.array([0, 1, 2, 3], dtype='i2'), pa.uint16(),
1910 np.array([0, 1, 2, 3], dtype='u2'), pa.uint16())
1911 ]
1912
1913 for case in safe_cases:
1914 _check_cast_case(case)
1915
1916
1917def 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