From ac1c702f783959fd409b07c231f3eda0e0c8dcee Mon Sep 17 00:00:00 2001 From: NADAL Jean-Baptiste Date: Mon, 5 Feb 2024 18:23:25 +0100 Subject: [PATCH] [FIX] Update the Tests names --- tests/04_transformations.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/04_transformations.cpp b/tests/04_transformations.cpp index 7b75bd2..ce0258f 100644 --- a/tests/04_transformations.cpp +++ b/tests/04_transformations.cpp @@ -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); 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 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); 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); 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); 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 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); 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); 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); 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); 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); Matrix half_quarter = Matrix::rotation_z(std::numbers::pi / 4);