#include "test/u.hpp" #include #include namespace { AddTestCase _(0, "tester", [](TestCase& t) { t.expectTrue([] { return true; }); t.expectFalse([] { return false; }); t.expectTrue([] { std::this_thread::sleep_for(std::chrono::milliseconds(200)); return true; }); t.expectEq([] { return 42; }, 42); t.expectEq([] { return 10 + 1e-7; }, 10); t.expectEq([] { return 10 + 1e-10; }, 10); }); }