[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

@@ -33,7 +33,7 @@ using namespace Raytracer;
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Constructing and inspecting a 4x4 matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Constructing and inspecting a 4x4 matrix", "[Matrix]")
{
Matrix m = {
{ 1, 2, 3, 4},
@@ -56,7 +56,7 @@ TEST_CASE("[Matrix] Constructing and inspecting a 4x4 matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] A 2x2 matrix ought to be representable", "[Matrix]")
TEST_CASE("[03][Matrix] A 2x2 matrix ought to be representable", "[Matrix]")
{
Matrix m = {
{-3, 5},
@@ -74,7 +74,7 @@ TEST_CASE("[Matrix] A 2x2 matrix ought to be representable", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] A 3x3 matrix ought to be representable", "[Matrix]")
TEST_CASE("[03][Matrix] A 3x3 matrix ought to be representable", "[Matrix]")
{
Matrix m = {
{-3, 5, 0},
@@ -92,7 +92,7 @@ TEST_CASE("[Matrix] A 3x3 matrix ought to be representable", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Matrix equality with identical matrices", "[Matrix]")
TEST_CASE("[03][Matrix] Matrix equality with identical matrices", "[Matrix]")
{
Matrix a = {
{1, 2, 3, 4},
@@ -112,7 +112,7 @@ TEST_CASE("[Matrix] Matrix equality with identical matrices", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Matrix equality with different matrices", "[Matrix]")
TEST_CASE("[03][Matrix] Matrix equality with different matrices", "[Matrix]")
{
Matrix a = {
{1, 2, 3, 4},
@@ -132,7 +132,7 @@ TEST_CASE("[Matrix] Matrix equality with different matrices", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Multiplying two matrices", "[Matrix]")
TEST_CASE("[03][Matrix] Multiplying two matrices", "[Matrix]")
{
Matrix a = {
{1, 2, 3, 4},
@@ -158,7 +158,7 @@ TEST_CASE("[Matrix] Multiplying two matrices", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] a matrix multiplied by a tuple", "[Matrix]")
TEST_CASE("[03][Matrix] a matrix multiplied by a tuple", "[Matrix]")
{
Matrix a = {
{1, 2, 3, 4},
@@ -173,7 +173,7 @@ TEST_CASE("[Matrix] a matrix multiplied by a tuple", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Multiplying a matrix by the identity matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Multiplying a matrix by the identity matrix", "[Matrix]")
{
Matrix a = {
{0, 1, 2, 4},
@@ -187,7 +187,7 @@ TEST_CASE("[Matrix] Multiplying a matrix by the identity matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Multiplying the identity matrix by a tuple", "[Matrix]")
TEST_CASE("[03][Matrix] Multiplying the identity matrix by a tuple", "[Matrix]")
{
Tuple a(1, 2, 3, 4);
@@ -196,7 +196,7 @@ TEST_CASE("[Matrix] Multiplying the identity matrix by a tuple", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Transposing a matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Transposing a matrix", "[Matrix]")
{
Matrix a = {
{0, 9, 3, 0},
@@ -218,7 +218,7 @@ TEST_CASE("[Matrix] Transposing a matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Transposing the identity matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Transposing the identity matrix", "[Matrix]")
{
Matrix a = Matrix::identity();
@@ -229,7 +229,7 @@ TEST_CASE("[Matrix] Transposing the identity matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Calculating the determinant of a 2x2 matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Calculating the determinant of a 2x2 matrix", "[Matrix]")
{
Matrix a = {
{ 1, 5},
@@ -241,7 +241,7 @@ TEST_CASE("[Matrix] Calculating the determinant of a 2x2 matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] A submatrix of a 3x3 matrix is a 2x2 matrix", "[Matrix]")
TEST_CASE("[03][Matrix] A submatrix of a 3x3 matrix is a 2x2 matrix", "[Matrix]")
{
Matrix a = {
{ 1, 5, 0},
@@ -259,7 +259,7 @@ TEST_CASE("[Matrix] A submatrix of a 3x3 matrix is a 2x2 matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] A submatrix of a 4x4 matrix is a 3x3 matrix", "[Matrix]")
TEST_CASE("[03][Matrix] A submatrix of a 4x4 matrix is a 3x3 matrix", "[Matrix]")
{
Matrix a = {
{-6, 1, 1, 6},
@@ -279,7 +279,7 @@ TEST_CASE("[Matrix] A submatrix of a 4x4 matrix is a 3x3 matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Calculating a minor of a 3x3 matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Calculating a minor of a 3x3 matrix", "[Matrix]")
{
Matrix a = {
{3, 5, 0},
@@ -296,7 +296,7 @@ TEST_CASE("[Matrix] Calculating a minor of a 3x3 matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Calculating a cofactor of a 3x3 matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Calculating a cofactor of a 3x3 matrix", "[Matrix]")
{
Matrix a = {
{3, 5, 0},
@@ -312,7 +312,7 @@ TEST_CASE("[Matrix] Calculating a cofactor of a 3x3 matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Calculating the determinant of a 3x3 matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Calculating the determinant of a 3x3 matrix", "[Matrix]")
{
Matrix a = {
{ 1, 2, 6},
@@ -328,7 +328,7 @@ TEST_CASE("[Matrix] Calculating the determinant of a 3x3 matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Calculating the determinant of a 4x4 matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Calculating the determinant of a 4x4 matrix", "[Matrix]")
{
Matrix a = {
{-2, -8, 3, 5},
@@ -346,7 +346,7 @@ TEST_CASE("[Matrix] Calculating the determinant of a 4x4 matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Testing an invertible matrix for invertibility", "[Matrix]")
TEST_CASE("[03][Matrix] Testing an invertible matrix for invertibility", "[Matrix]")
{
Matrix a = {
{6, 4, 4, 4},
@@ -361,7 +361,7 @@ TEST_CASE("[Matrix] Testing an invertible matrix for invertibility", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Testing an noninvertible matrix for invertibility", "[Matrix]")
TEST_CASE("[03][Matrix] Testing an noninvertible matrix for invertibility", "[Matrix]")
{
Matrix a = {
{-4, 2, -2, -3},
@@ -376,7 +376,7 @@ TEST_CASE("[Matrix] Testing an noninvertible matrix for invertibility", "[Matrix
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Calculating the inverse of a matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Calculating the inverse of a matrix", "[Matrix]")
{
Matrix a = {
{-5, 2, 6, -8},
@@ -404,7 +404,7 @@ TEST_CASE("[Matrix] Calculating the inverse of a matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Calculating the inverse of another matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Calculating the inverse of another matrix", "[Matrix]")
{
Matrix a = {
{ 8, -5, 9, 2},
@@ -424,7 +424,7 @@ TEST_CASE("[Matrix] Calculating the inverse of another matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Calculating the inverse of third matrix", "[Matrix]")
TEST_CASE("[03][Matrix] Calculating the inverse of third matrix", "[Matrix]")
{
Matrix a = {
{ 9, 3, 0, 9},
@@ -444,7 +444,7 @@ TEST_CASE("[Matrix] Calculating the inverse of third matrix", "[Matrix]")
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Multiplying a product by its inverse", "[Matrix]")
TEST_CASE("[03][Matrix] Multiplying a product by its inverse", "[Matrix]")
{
Matrix a = {
{ 3, -9, 7, 3},