()
| 1926 | |
| 1927 | |
| 1928 | def test_arithmetic_add(): |
| 1929 | left = pa.array([1, 2, 3, 4, 5]) |
| 1930 | right = pa.array([0, -1, 1, 2, 3]) |
| 1931 | result = pc.add(left, right) |
| 1932 | expected = pa.array([1, 1, 4, 6, 8]) |
| 1933 | assert result.equals(expected) |
| 1934 | |
| 1935 | |
| 1936 | def test_arithmetic_subtract(): |