#include #include #include #include using namespace lt; using lt::test::Case; using lt::test::Suite; Suite raii = [] { using lt::test::expect_true; using lt::test::expect_throw; using renderer::System; auto *window = static_cast(lt::Window::create([](auto &&PH1) {})->get_handle()); Case { "happy" } = [=] { std::ignore = System { { .glfw_window_handle = window, .registry = create_ref(), } }; }; Case { "unhappy" } = [=] { expect_throw([=] { std::ignore = System { { .glfw_window_handle = window, .registry = {}, } }; }); expect_throw([=] { std::ignore = System { { .glfw_window_handle = {}, .registry = create_ref(), } }; }); }; Case { "plenty" } = [=] { for (auto idx : std::views::iota(0, 100'001)) { std::ignore = System { { .glfw_window_handle = window, .registry = create_ref(), } }; } }; };