blob: e544bf4d0468f8c62c20ad4156be04c8fdc2d613 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright (c) 2026 Progmasoft.
// SPDX-License-Identifier: LGPL-3.0-or-later
// Tests linked with @progmasoft_catch3//:catch3, with a main of their own.
#include <Progmasoft/Catch3/Session.hpp>
#include <Progmasoft/Catch3/TestMacros.hpp>
TEST_CASE("A test runs under its own main", "[module]")
{
REQUIRE(1 + 1 == 2);
}
int
main(int argc, char **argv)
{
Catch::Session session;
return session.run(argc, argv);
}
|