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

Function test_arithmetic_add

python/pyarrow/tests/test_compute.py:1928–1933  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1926
1927
1928def 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
1936def test_arithmetic_subtract():

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected