[FIX] Update the Tests names
This commit is contained in:
@@ -33,7 +33,7 @@ using namespace Raytracer;
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
TEST_CASE("[04][TRANSFORMATION] Multiplying by a translation matrix", "[Matrix]")
|
TEST_CASE("[04][Trans] Multiplying by a translation matrix", "[Matrix]")
|
||||||
{
|
{
|
||||||
Matrix transform = Matrix::translation(5, -3, 2);
|
Matrix transform = Matrix::translation(5, -3, 2);
|
||||||
Tuple p = Tuple::Point(-3, 4, 5);
|
Tuple p = Tuple::Point(-3, 4, 5);
|
||||||
@@ -43,7 +43,7 @@ TEST_CASE("[04][TRANSFORMATION] Multiplying by a translation matrix", "[Matrix]"
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
TEST_CASE("[04][TRANSFORMATION] Multiplying by the inverse of a translation matrix", "[Matrix]")
|
TEST_CASE("[04][Trans] Multiplying by the inverse of a translation matrix", "[Matrix]")
|
||||||
{
|
{
|
||||||
Matrix transform = Matrix::translation(5, -3, 2);
|
Matrix transform = Matrix::translation(5, -3, 2);
|
||||||
Matrix inv = transform.inverse();
|
Matrix inv = transform.inverse();
|
||||||
@@ -54,7 +54,7 @@ TEST_CASE("[04][TRANSFORMATION] Multiplying by the inverse of a translation matr
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
TEST_CASE("[04][TRANSFORMATION] Translation does not affect vectors", "[Matrix]")
|
TEST_CASE("[04][Trans] Translation does not affect vectors", "[Matrix]")
|
||||||
{
|
{
|
||||||
Matrix transform = Matrix::translation(5, -3, 2);
|
Matrix transform = Matrix::translation(5, -3, 2);
|
||||||
Tuple v = Tuple::Vector(-3, 4, 5);
|
Tuple v = Tuple::Vector(-3, 4, 5);
|
||||||
@@ -64,7 +64,7 @@ TEST_CASE("[04][TRANSFORMATION] Translation does not affect vectors", "[Matrix]"
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
TEST_CASE("[04][TRANSFORMATION] A scaling matrix applied to a point", "[Matrix]")
|
TEST_CASE("[04][Trans] A scaling matrix applied to a point", "[Matrix]")
|
||||||
{
|
{
|
||||||
Matrix transform = Matrix::scaling(2, 3, 4);
|
Matrix transform = Matrix::scaling(2, 3, 4);
|
||||||
Tuple p = Tuple::Point(-4, 6, 8);
|
Tuple p = Tuple::Point(-4, 6, 8);
|
||||||
@@ -74,7 +74,7 @@ TEST_CASE("[04][TRANSFORMATION] A scaling matrix applied to a point", "[Matrix]"
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
TEST_CASE("[04][TRANSFORMATION] A scaling matrix applied to a vector", "[Matrix]")
|
TEST_CASE("[04][Trans] A scaling matrix applied to a vector", "[Matrix]")
|
||||||
{
|
{
|
||||||
Matrix transform = Matrix::scaling(2, 3, 4);
|
Matrix transform = Matrix::scaling(2, 3, 4);
|
||||||
Tuple v = Tuple::Vector(-4, 6, 8);
|
Tuple v = Tuple::Vector(-4, 6, 8);
|
||||||
@@ -84,7 +84,7 @@ TEST_CASE("[04][TRANSFORMATION] A scaling matrix applied to a vector", "[Matrix]
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
TEST_CASE("[04][TRANSFORMATION] Multiplying by the inverse of a scaling matrix", "[Matrix]")
|
TEST_CASE("[04][Trans] Multiplying by the inverse of a scaling matrix", "[Matrix]")
|
||||||
{
|
{
|
||||||
Matrix transform = Matrix::scaling(2, 3, 4);
|
Matrix transform = Matrix::scaling(2, 3, 4);
|
||||||
Matrix inv = transform.inverse();
|
Matrix inv = transform.inverse();
|
||||||
@@ -95,7 +95,7 @@ TEST_CASE("[04][TRANSFORMATION] Multiplying by the inverse of a scaling matrix",
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
TEST_CASE("[04][TRANSFORMATION] Reflection is scaling by a negative value", "[Matrix]")
|
TEST_CASE("[04][Trans] Reflection is scaling by a negative value", "[Matrix]")
|
||||||
{
|
{
|
||||||
Matrix transform = Matrix::scaling(-1, 1, 1);
|
Matrix transform = Matrix::scaling(-1, 1, 1);
|
||||||
Tuple p = Tuple::Point(2, 3, 4);
|
Tuple p = Tuple::Point(2, 3, 4);
|
||||||
@@ -105,7 +105,7 @@ TEST_CASE("[04][TRANSFORMATION] Reflection is scaling by a negative value", "[Ma
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
TEST_CASE("[04][TRANSFORMATION] Rotating a point around the x axis", "[Matrix]")
|
TEST_CASE("[04][Trans] Rotating a point around the x axis", "[Matrix]")
|
||||||
{
|
{
|
||||||
Tuple p = Tuple::Point(0, 1, 0);
|
Tuple p = Tuple::Point(0, 1, 0);
|
||||||
Matrix half_quarter = Matrix::rotation_x(std::numbers::pi / 4);
|
Matrix half_quarter = Matrix::rotation_x(std::numbers::pi / 4);
|
||||||
@@ -117,7 +117,7 @@ TEST_CASE("[04][TRANSFORMATION] Rotating a point around the x axis", "[Matrix]")
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
TEST_CASE("[04][TRANSFORMATION] The inverse of an x-rotation rotates in the opposite direction", "[Matrix]")
|
TEST_CASE("[04][Trans] The inverse of an x-rotation rotates in the opposite direction", "[Matrix]")
|
||||||
{
|
{
|
||||||
Tuple p = Tuple::Point(0, 1, 0);
|
Tuple p = Tuple::Point(0, 1, 0);
|
||||||
Matrix half_quarter = Matrix::rotation_x(std::numbers::pi / 4);
|
Matrix half_quarter = Matrix::rotation_x(std::numbers::pi / 4);
|
||||||
@@ -128,7 +128,7 @@ TEST_CASE("[04][TRANSFORMATION] The inverse of an x-rotation rotates in the oppo
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
TEST_CASE("[04][TRANSFORMATION] Rotating a point around the y axis", "[Matrix]")
|
TEST_CASE("[04][Trans] Rotating a point around the y axis", "[Matrix]")
|
||||||
{
|
{
|
||||||
Tuple p = Tuple::Point(0, 0, 1);
|
Tuple p = Tuple::Point(0, 0, 1);
|
||||||
Matrix half_quarter = Matrix::rotation_y(std::numbers::pi / 4);
|
Matrix half_quarter = Matrix::rotation_y(std::numbers::pi / 4);
|
||||||
@@ -140,7 +140,7 @@ TEST_CASE("[04][TRANSFORMATION] Rotating a point around the y axis", "[Matrix]")
|
|||||||
|
|
||||||
/* ------------------------------------------------------------------------- */
|
/* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
TEST_CASE("[04][TRANSFORMATION] Rotating a point around the z axis", "[Matrix]")
|
TEST_CASE("[04][Trans] Rotating a point around the z axis", "[Matrix]")
|
||||||
{
|
{
|
||||||
Tuple p = Tuple::Point(0, 1, 0);
|
Tuple p = Tuple::Point(0, 1, 0);
|
||||||
Matrix half_quarter = Matrix::rotation_z(std::numbers::pi / 4);
|
Matrix half_quarter = Matrix::rotation_z(std::numbers::pi / 4);
|
||||||
|
|||||||
Reference in New Issue
Block a user