Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
add_executable(Stun_tests
|
||||
test_stun.cxx
|
||||
)
|
||||
|
||||
target_link_libraries(Stun_tests
|
||||
PRIVATE
|
||||
Stun
|
||||
Catch2::Catch2WithMain
|
||||
)
|
||||
|
||||
catch_discover_tests(Stun_tests)
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <stun/stun.hxx>
|
||||
|
||||
TEST_CASE("add_numbers works", "[stun]") {
|
||||
SECTION("adding 1 to 2") { REQUIRE(stun::add_numbers(1, 2) == 3); }
|
||||
}
|
||||
Reference in New Issue
Block a user