MCPcopy 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

asarrayMethod · 0.45
resultMethod · 0.45
goMethod · 0.45
sumMethod · 0.45

Tested by

no test coverage detected