#include #include #include "../utils.hpp" #include "../AutomaticDifferentiation.hpp" #define print(x) PRINT_VAR(x); #define printstr(x) PRINT_STR(x); template bool check_almost_equal(const std::vector & v1, const std::vector & v2, T tol) { bool ok = true; for(size_t i = 0 ; i < v1.size() ; i++) if(fabs(v1[i] - v2[i]) > tol) { ok = false; break; } return ok; } TEST_CASE( "Dual numbers : Constructors", "[dual]" ) { std::cout.precision(16); using S = double; using D = Dual; using V = std::vector; SECTION( "Default Constructor" ) { } SECTION( "Constructor with int" ) { } } // CHECK() // REQUIRE()