MCPcopy Index your code
hub / github.com/numpy/numpy / test_cumsum

Method test_cumsum

numpy/_core/tests/test_ufunc.py:1533–1536  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1531 assert_raises(ValueError, umt.euclidean_pdist, a)
1532
1533 def test_cumsum(self):
1534 a = np.arange(10)
1535 result = umt.cumsum(a)
1536 assert_array_equal(result, a.cumsum())
1537
1538 def test_object_logical(self):
1539 a = np.array([3, None, True, False, "test", ""], dtype=object)

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
cumsumMethod · 0.80

Tested by

no test coverage detected