ADD: Adds files for initial build of the library.
This commit is contained in:
40
tests/test_test.cpp
Normal file
40
tests/test_test.cpp
Normal 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
|
||||
Reference in New Issue
Block a user