mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-03-02 11:50:38 +00:00
sink test
This commit is contained in:
parent
686e4a3d26
commit
63dcfe720a
@ -1997,3 +1997,9 @@ suite "Future[T] behavior test suite":
|
||||
check:
|
||||
future1.cancelled() == true
|
||||
future2.cancelled() == true
|
||||
test "Sink with literals":
|
||||
# https://github.com/nim-lang/Nim/issues/22175
|
||||
let fut = newFuture[string]()
|
||||
fut.complete("test")
|
||||
check:
|
||||
fut.value() == "test"
|
||||
|
Loading…
x
Reference in New Issue
Block a user