()
| 2018 | |
| 2019 | @pytest.mark.numpy |
| 2020 | def 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 | |
| 2032 | def test_cast_from_null(): |
nothing calls this directly
no test coverage detected