#define CATCH_CONFIG_MAIN #include "catch.hpp" #include #include #include TEST_CASE("Test add", "[unit-test]"){ // not very good tests, but oh well... REQUIRE(add(2, 3) == 5); REQUIRE(add(2., 3.) == 5.); REQUIRE(add(0, 0) == 0); std::cout << "RUNNING TEST" << std::endl; std::complex a(2., 3.); std::complex b(-1., 20.); std::complex c(1., 23.); REQUIRE(add(a,b) == c); }