17 lines
394 B
C++
17 lines
394 B
C++
//
|
|
// Created by erki on 30/01/25.
|
|
//
|
|
|
|
#include <catch2/catch.hpp>
|
|
|
|
#include "skullc/coro/scheduler.hpp"
|
|
#include "skullc/coro/this_coro.hpp"
|
|
|
|
TEST_CASE("this_coro returns the correct scheduler.", "[coro],[this_coro]")
|
|
{
|
|
skullc::coro::Scheduler<std::vector> scheduler;
|
|
skullc::this_coro::scheduler.register_scheduler(scheduler);
|
|
|
|
REQUIRE(&skullc::this_coro::scheduler() == &scheduler);
|
|
}
|