light/modules/test/private/test.test.cpp

37 lines
569 B
C++
Raw Normal View History

#include <test/test.hpp>
lt::test::Suite meta = []() {
using lt::test::expect_eq;
2025-07-16 13:20:36 +03:30
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" } = [] {
2025-07-16 13:20:36 +03:30
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" } = [] {
};
};