mirror of
https://codeberg.org/andyscott/exercism.git
synced 2024-11-14 15:20:48 -05:00
17 lines
393 B
C++
17 lines
393 B
C++
|
// Include the header file with the definitions of the functions you create.
|
||
|
#include "hello_world.h"
|
||
|
|
||
|
// Include the test framework.
|
||
|
#ifdef EXERCISM_TEST_SUITE
|
||
|
#include <catch2/catch.hpp>
|
||
|
#else
|
||
|
#include "test/catch.hpp"
|
||
|
#endif
|
||
|
|
||
|
// Declares a single test.
|
||
|
TEST_CASE("test_hello")
|
||
|
{
|
||
|
// Check if your function returns "Hello, World!".
|
||
|
REQUIRE(hello_world::hello() == "Hello, World!");
|
||
|
}
|