MCPcopy Create free account
hub / github.com/numpy/numpy / test_cumsum

Method test_cumsum

numpy/core/tests/test_ufunc.py:1342–1345  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1340 assert_raises(ValueError, umt.euclidean_pdist, a)
1341
1342 def test_cumsum(self):
1343 a = np.arange(10)
1344 result = umt.cumsum(a)
1345 assert_array_equal(result, a.cumsum())
1346
1347 def test_object_logical(self):
1348 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