[FEAT] Rename the test names

This commit is contained in:
NADAL Jean-Baptiste
2024-02-05 14:50:53 +01:00
parent 1dac519cf8
commit 7742fbf3d2
4 changed files with 67 additions and 67 deletions

View File

@@ -35,7 +35,7 @@ using namespace Raytracer;
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] a tuple with w=1.0 is a point", "[Tuple]")
TEST_CASE("[01][Tuple] a tuple with w=1.0 is a point", "[Tuple]")
{
Tuple a(4.3, -4.2, 3.1, 1.0);
@@ -50,7 +50,7 @@ TEST_CASE("[Tuple] a tuple with w=1.0 is a point", "[Tuple]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] a tuple with w=0 is a vector", "[Tuple]")
TEST_CASE("[01][Tuple] a tuple with w=0 is a vector", "[Tuple]")
{
Tuple a(4.3, -4.2, 3.1, 0.0);
@@ -64,7 +64,7 @@ TEST_CASE("[Tuple] a tuple with w=0 is a vector", "[Tuple]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] access of data with []", "[Tuple]")
TEST_CASE("[01][Tuple] access of data with []", "[Tuple]")
{
Tuple a(4.3, -4.2, 3.1, 0.0);
@@ -76,7 +76,7 @@ TEST_CASE("[Tuple] access of data with []", "[Tuple]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] constructor with std::vector", "[Tuple]")
TEST_CASE("[01][Tuple] constructor with std::vector", "[Tuple]")
{
std::vector<double> v = {4.3, -4.2, 3.1, 0.0};
Tuple a(v);
@@ -89,7 +89,7 @@ TEST_CASE("[Tuple] constructor with std::vector", "[Tuple]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] test copy constructor", "[Tuple]")
TEST_CASE("[01][Tuple] test copy constructor", "[Tuple]")
{
Tuple a;
Tuple b(4.3, -4.2, 3.1, 0.0);
@@ -104,7 +104,7 @@ TEST_CASE("[Tuple] test copy constructor", "[Tuple]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Tuple could be copy", "[Tuple]")
TEST_CASE("[01][Tuple] Tuple could be copy", "[Tuple]")
{
Tuple p = Tuple::Point(4, -4, 3);
Tuple n;
@@ -116,7 +116,7 @@ TEST_CASE("[Tuple] Tuple could be copy", "[Tuple]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Point() creates tuples with w=1", "[Tuple][Point]")
TEST_CASE("[01][Tuple] Point() creates tuples with w=1", "[Tuple][Point]")
{
Tuple p = Tuple::Point(4, -4, 3);
@@ -125,7 +125,7 @@ TEST_CASE("[Tuple] Point() creates tuples with w=1", "[Tuple][Point]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Vector() creates tuples with w=0", "[Tuple][Vector]")
TEST_CASE("[01][Tuple] Vector() creates tuples with w=0", "[Tuple][Vector]")
{
Tuple v = Tuple::Vector(4, -4, 3);
@@ -134,7 +134,7 @@ TEST_CASE("[Tuple] Vector() creates tuples with w=0", "[Tuple][Vector]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Adding two tuples", "[Tuple][Operations]")
TEST_CASE("[01][Tuple] Adding two tuples", "[Tuple][Operations]")
{
Tuple a1(3, -2, 5, 1);
Tuple a2(-2, 3, 1, 0);
@@ -144,7 +144,7 @@ TEST_CASE("[Tuple] Adding two tuples", "[Tuple][Operations]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Adding two tuples without modify a1", "[Tuple][Operations]")
TEST_CASE("[01][Tuple] Adding two tuples without modify a1", "[Tuple][Operations]")
{
Tuple a1(3, -2, 5, 1);
Tuple a2(-2, 3, 1, 0);
@@ -156,7 +156,7 @@ TEST_CASE("[Tuple] Adding two tuples without modify a1", "[Tuple][Operations]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Subtracting two points", "[Tuple][Operations]")
TEST_CASE("[01][Tuple] Subtracting two points", "[Tuple][Operations]")
{
Tuple p1 = Tuple::Point(3, 2, 1);
Tuple p2 = Tuple::Point(5, 6, 7);
@@ -166,7 +166,7 @@ TEST_CASE("[Tuple] Subtracting two points", "[Tuple][Operations]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Subtracting two points without modify p1", "[Tuple][Operations]")
TEST_CASE("[01][Tuple] Subtracting two points without modify p1", "[Tuple][Operations]")
{
Tuple p1 = Tuple::Point(3, 2, 1);
Tuple p2 = Tuple::Point(5, 6, 7);
@@ -178,7 +178,7 @@ TEST_CASE("[Tuple] Subtracting two points without modify p1", "[Tuple][Operation
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Subtracting a vector from a point", "[Tuple][Operations]")
TEST_CASE("[01][Tuple] Subtracting a vector from a point", "[Tuple][Operations]")
{
Tuple p = Tuple::Point(3, 2, 1);
Tuple v = Tuple::Vector(5, 6, 7);
@@ -188,7 +188,7 @@ TEST_CASE("[Tuple] Subtracting a vector from a point", "[Tuple][Operations]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Subtracting two vectors", "[Tuple][Operations]")
TEST_CASE("[01][Tuple] Subtracting two vectors", "[Tuple][Operations]")
{
Tuple v1 = Tuple::Vector(3, 2, 1);
Tuple v2 = Tuple::Vector(5, 6, 7);
@@ -198,7 +198,7 @@ TEST_CASE("[Tuple] Subtracting two vectors", "[Tuple][Operations]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Subtracting a vector from the zero vector", "[Tuple][Operations]")
TEST_CASE("[01][Tuple] Subtracting a vector from the zero vector", "[Tuple][Operations]")
{
Tuple zero = Tuple::Vector(0, 0, 0);
Tuple v = Tuple::Vector(1, -2, 3);
@@ -208,7 +208,7 @@ TEST_CASE("[Tuple] Subtracting a vector from the zero vector", "[Tuple][Operatio
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Negative a tuple", "[Tuple][Operations]")
TEST_CASE("[01][Tuple] Negative a tuple", "[Tuple][Operations]")
{
Tuple a(1, -2, 3, -4);
@@ -217,7 +217,7 @@ TEST_CASE("[Tuple] Negative a tuple", "[Tuple][Operations]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Multiplying a tuple by a scalar", "[Tuple][Multiplication]")
TEST_CASE("[01][Tuple] Multiplying a tuple by a scalar", "[Tuple][Multiplication]")
{
Tuple a(1, -2, 3, -4);
@@ -226,7 +226,7 @@ TEST_CASE("[Tuple] Multiplying a tuple by a scalar", "[Tuple][Multiplication]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Multiplying a tuple by a scalar without modify a", "[Tuple][Multiplication]")
TEST_CASE("[01][Tuple] Multiplying a tuple by a scalar without modify a", "[Tuple][Multiplication]")
{
Tuple a(1, -2, 3, -4);
@@ -237,7 +237,7 @@ TEST_CASE("[Tuple] Multiplying a tuple by a scalar without modify a", "[Tuple][M
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Dividing a tuple by a scalar", "[Tuple][Multiplication]")
TEST_CASE("[01][Tuple] Dividing a tuple by a scalar", "[Tuple][Multiplication]")
{
Tuple a(1, -2, 3, -4);
@@ -246,7 +246,7 @@ TEST_CASE("[Tuple] Dividing a tuple by a scalar", "[Tuple][Multiplication]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Dividing a tuple by a scalar without modify a", "[Tuple][Multiplication]")
TEST_CASE("[01][Tuple] Dividing a tuple by a scalar without modify a", "[Tuple][Multiplication]")
{
Tuple a(1, -2, 3, -4);
@@ -257,7 +257,7 @@ TEST_CASE("[Tuple] Dividing a tuple by a scalar without modify a", "[Tuple][Mult
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Computing the magnitude of vector(1,0,0)", "[Tuple][Magnitude]")
TEST_CASE("[01][Tuple] Computing the magnitude of vector(1,0,0)", "[Tuple][Magnitude]")
{
Tuple v = Tuple::Vector(1, 0, 0);
@@ -266,7 +266,7 @@ TEST_CASE("[Tuple] Computing the magnitude of vector(1,0,0)", "[Tuple][Magnitude
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Computing the magnitude of vector(0,1,0)", "[Tuple][Magnitude]")
TEST_CASE("[01][Tuple] Computing the magnitude of vector(0,1,0)", "[Tuple][Magnitude]")
{
Tuple v = Tuple::Vector(0, 1, 0);
@@ -275,7 +275,7 @@ TEST_CASE("[Tuple] Computing the magnitude of vector(0,1,0)", "[Tuple][Magnitude
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Computing the magnitude of vector(0,0,1)", "[Tuple][Magnitude]")
TEST_CASE("[01][Tuple] Computing the magnitude of vector(0,0,1)", "[Tuple][Magnitude]")
{
Tuple v = Tuple::Vector(0, 0, 1);
@@ -284,7 +284,7 @@ TEST_CASE("[Tuple] Computing the magnitude of vector(0,0,1)", "[Tuple][Magnitude
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Computing the magnitude of vector(1,2,3)", "[Tuple][Magnitude]")
TEST_CASE("[01][Tuple] Computing the magnitude of vector(1,2,3)", "[Tuple][Magnitude]")
{
Tuple v = Tuple::Vector(1, 2, 3);
@@ -293,7 +293,7 @@ TEST_CASE("[Tuple] Computing the magnitude of vector(1,2,3)", "[Tuple][Magnitude
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Computing the magnitude of vector(-1,-2,-3)", "[Tuple][Magnitude]")
TEST_CASE("[01][Tuple] Computing the magnitude of vector(-1,-2,-3)", "[Tuple][Magnitude]")
{
Tuple v = Tuple::Vector(-1, -2, -3);
@@ -302,7 +302,7 @@ TEST_CASE("[Tuple] Computing the magnitude of vector(-1,-2,-3)", "[Tuple][Magnit
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Normalize vector(4,0,0) gives (1,0,0)", "[Tuple][Normalize]")
TEST_CASE("[01][Tuple] Normalize vector(4,0,0) gives (1,0,0)", "[Tuple][Normalize]")
{
Tuple v = Tuple::Vector(4, 0, 0);
@@ -311,7 +311,7 @@ TEST_CASE("[Tuple] Normalize vector(4,0,0) gives (1,0,0)", "[Tuple][Normalize]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] Normalize vector(1,2,3)", "[Tuple][Normalize]")
TEST_CASE("[01][Tuple] Normalize vector(1,2,3)", "[Tuple][Normalize]")
{
Tuple v = Tuple::Vector(1, 2, 3);
@@ -320,7 +320,7 @@ TEST_CASE("[Tuple] Normalize vector(1,2,3)", "[Tuple][Normalize]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] The magnitude of a normalized vector", "[Tuple][Normalize]")
TEST_CASE("[01][Tuple] The magnitude of a normalized vector", "[Tuple][Normalize]")
{
Tuple norm;
Tuple v = Tuple::Vector(1, 2, 3);
@@ -332,7 +332,7 @@ TEST_CASE("[Tuple] The magnitude of a normalized vector", "[Tuple][Normalize]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] The dot product of two tuples", "[Tuple][Dot]")
TEST_CASE("[01][Tuple] The dot product of two tuples", "[Tuple][Dot]")
{
Tuple a = Tuple::Vector(1, 2, 3);
Tuple b = Tuple::Vector(2, 3, 4);
@@ -342,7 +342,7 @@ TEST_CASE("[Tuple] The dot product of two tuples", "[Tuple][Dot]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Tuple] The cross product of two vector", "[Tuple][Cross]")
TEST_CASE("[01][Tuple] The cross product of two vector", "[Tuple][Cross]")
{
Tuple a = Tuple::Vector(1, 2, 3);
Tuple b = Tuple::Vector(2, 3, 4);