light/modules/test/private/test.tests.cpp
light7734 cd886aa8c9
Some checks reported errors
continuous-integration/drone/push Build was killed
refactor: flatten directory structure
2025-07-20 04:46:15 +03:30

36 lines
569 B
C++

#include <test/test.hpp>
lt::test::Suite meta = []() {
using lt::test::expect_eq;
using lt::test::expect_true;
lt::test::Case { "test_1" } = [] {
expect_eq(5, 5);
};
lt::test::Case { "test_2" } = [] {
expect_eq(20.0, 20.0);
};
lt::test::Case { "test_3" } = [] {
auto exception_thrown = false;
try
{
expect_eq(true, false);
}
catch (const std::exception &exp)
{
exception_thrown = true;
}
expect_true(exception_thrown);
};
lt::test::Case { "test_4" } = [] {
expect_eq(true, 1);
};
lt::test::Case { "test_5" } = [] {
};
};