skullc-peripherals/Tests/this_coro.cpp
Erki 4d897ad5c6
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 10s
CI & Unit Tests / Docs (push) Successful in 14s
WIP2
2025-02-02 16:37:52 +02:00

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);
}