()
| 1903 | |
| 1904 | @pytest.mark.numpy |
| 1905 | def 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 | |
| 1917 | def test_cast_from_null(): |
nothing calls this directly
no test coverage detected