sink test

This commit is contained in:
Jacek Sieka 2023-09-05 13:10:42 +02:00
parent 686e4a3d26
commit 63dcfe720a
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8

View File

@ -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"