[FEAT] Use CPM and catch2 has library

This commit is contained in:
NADAL Jean-Baptiste
2024-03-18 12:44:42 +01:00
parent 544200ae14
commit b2ba503d24
22 changed files with 113 additions and 18000 deletions

View File

@@ -25,7 +25,9 @@
/*---------------------------------------------------------------------------*/
#include <external/catch.hpp>
#include <cmath>
#include <catch2/catch_test_macros.hpp>
#include "raytracing.h"
@@ -629,7 +631,7 @@ SCENARIO("Constructing a ray when the camera is transformed", "[features/camera.
}
AND_THEN("r.direction = vector(sqrt(2) / 2, 0, -sqrt(2) / 2)")
{
REQUIRE(r.direction() == Tuple::Vector(sqrt(2) / 2, 0, -sqrt(2) / 2));
REQUIRE(r.direction() == Tuple::Vector(std::sqrt(2) / 2, 0, -std::sqrt(2) / 2));
}
}
}