Closed yruslan closed 10 months ago
Here is an example unit test:
val ch1 = Channel.make[Int](3) val ch2 = ch1.filter(v => v == 3) ch1.send(1) ch1.send(2) val v1 = ch2.tryRecv(timeout) ch1.close() assert(v1.isEmpty)
The error is:
Some(2) does not equal to None.
Since the predicate is v == 3, the value 2 should have been skipped.
v == 3
2
Describe the bug
Here is an example unit test:
The error is:
Expected behavior
Since the predicate is
v == 3
, the value2
should have been skipped.