summaryrefslogtreecommitdiff
path: root/source/test
diff options
context:
space:
mode:
Diffstat (limited to 'source/test')
-rw-r--r--source/test/unittests/async_function.test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/test/unittests/async_function.test.c b/source/test/unittests/async_function.test.c
index 4fe2c60..f4571a0 100644
--- a/source/test/unittests/async_function.test.c
+++ b/source/test/unittests/async_function.test.c
@@ -84,6 +84,12 @@ TEST("coroutine init") {
REQUIRE(!AF_FINISHED(promise));
}
+TEST("coroutine init explicit") {
+ AF_TYPE(test_foo) promise;
+ AF_INIT_EXPLICIT(promise, AF_NAME(test_foo));
+ REQUIRE(!AF_FINISHED(promise));
+}
+
TEST("coroutine init with value") {
AF_TYPE(test_foo) promise;
AF_INIT(promise, test_foo, .return_value = 42);