ADD: Adds files for initial build of the library.

This commit is contained in:
Christina Sander
2022-10-20 14:02:48 +02:00
parent 3185b0bd7e
commit 4841b3ff17
4 changed files with 101 additions and 0 deletions

40
tests/test_test.cpp Normal file
View File

@@ -0,0 +1,40 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
/**
* @file
* @copyright 2022 MPLv2
*/
/**
* @defgroup tests
*/
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
/**
* @brief brief test description
* @ingroup group
*/
SCENARIO("A test scenario","[keywords]")
{
GIVEN("Preliminaries")
{
int i = 40;
WHEN("doing something")
{
i = i + 2;
THEN("expecting something to happen")
{
REQUIRE(i == 42 );
} // THEN
} // WHEN
} // GIVEN
} // SCENARIO