suite.cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #include <felspar/test/runner.hpp> #include <vector> auto &cases() { static std::vector<felspar::test::test_case> c; return c; } void felspar::test::register_test( std::string_view s, std::string n, test_function_ptr f) { cases().push_back(test::test_case{s, std::move(n), f}); } auto felspar::test::all_test_cases() -> std::span<test_case const> { auto const &c{cases()}; return {c.data(), c.size()}; } |