11 lines
209 B
C++
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);
|
||
|
}
|
||
|
}
|