library/test/add_test.cpp
Johannes Theiner 5251322d35 + Catch2 as Unit Test Framework
+ Demo Unit Test
+ README
+ LICENCE
+ CHANGELOG
2019-10-16 15:11:16 +02:00

11 lines
209 B
C++

#include <catch2/catch.hpp>
#include "../src/add.h"
TEST_CASE("add works") {
SECTION("equals") {
REQUIRE(add(2, 2) == 4);
}
SECTION("not equals") {
REQUIRE(add(2, 2) != 5);
}
}