src/base/coroutine.test.cc
/**
 * This test is checking if the Coroutine, once it yields
 * back to the caller, it is still marked as not finished.
 */
This test is checking if the Coroutine, once it yields
back to the caller, it is still marked as not finished.
This test is checking if the Coroutine once it yields back to the caller it is still marked as not finished .
TEST(Coroutine, Unfinished)
{
    auto yielding_task =
    [] (Coroutine<void, void>::CallerType& yield)
    {
        yield();
    };
    Coroutine<void, void> coro(yielding_task);
    ASSERT_TRUE(coro);
}
TEST ( Coroutine , Unfinished ) { auto yielding_task = [ ] ( Coroutine < void , void > :: CallerType & yield ) { yield ( ) ; } ; Coroutine < void , void > coro ( yielding_task ) ; ASSERT_TRUE ( coro ) ; }
This test is checking if the Coroutine, once it yields
 back to the caller, it is still marked as not finished.
This test is checking if the Coroutine once it yields back to the caller it is still marked as not finished .