[FEAT] Use CPM and catch2 has library
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user