Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YuminosukeSato/ironkernel
/ test_empty_sum_raises
Method
test_empty_sum_raises
tests/python/test_kernel.py:122–125 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
120
assert avg == 49.5
121
122
def
test_empty_sum_raises(self) -> None:
123
buf = rt.asarray(np.array([], dtype=np.float64))
124
with
pytest.raises(ValueError, match=
"cannot Sum empty buffer"
):
125
rt.go(kernel.sum(buf)).result()
Callers
nothing calls this directly
Calls
4
asarray
Method · 0.45
result
Method · 0.45
go
Method · 0.45
sum
Method · 0.45
Tested by
no test coverage detected