light/modules/test/src/test.tests.cpp
light7734 a54885b02e
Some checks failed
continuous-integration/drone/push Build is failing
build: add add_test_module cmake macro
2025-07-16 10:36:07 +03:30

25 lines
439 B
C++

#include <test/test.hpp>
lt::test::Suite meta = []() {
using lt::test::expect_eq;
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" } = [] {
expect_eq(true, false);
};
lt::test::Case { "test_4" } = [] {
expect_eq(true, 1);
};
lt::test::Case { "test_5" } = [] {
throw std::runtime_error("Uncaught std exception!");
};
};