MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / test_nan_through_channel

Function test_nan_through_channel

tests/python/test_special_values.py:51–58  ·  view source on GitHub ↗

NaN buffer survives channel send/recv.

()

Source from the content-addressed store, hash-verified

49
50
51def test_nan_through_channel() -> None:
52 """NaN buffer survives channel send/recv."""
53 c = chan(1)
54 buf = rt.asarray(np.array([float("nan"), 1.0]))
55 c.send(buf)
56 received = c.recv().numpy()
57 assert math.isnan(received[0])
58 assert received[1] == 1.0
59
60
61def test_special_values_in_where() -> None:

Callers

nothing calls this directly

Calls 5

chanFunction · 0.90
numpyMethod · 0.80
asarrayMethod · 0.45
sendMethod · 0.45
recvMethod · 0.45

Tested by

no test coverage detected