NaN buffer survives channel send/recv.
()
| 49 | |
| 50 | |
| 51 | def 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 | |
| 61 | def test_special_values_in_where() -> None: |