From 8562e9579ed2a82aea29fdced6a3c026f4b43582 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Fri, 11 Feb 2022 11:17:31 +0100 Subject: [PATCH] Fixed test naming --- Test/Math__Abs.cpp | 6 +++--- Test/Math__Oscillate.cpp | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Test/Math__Abs.cpp b/Test/Math__Abs.cpp index ae9788d..c954560 100644 --- a/Test/Math__Abs.cpp +++ b/Test/Math__Abs.cpp @@ -10,21 +10,21 @@ using namespace Eule; */ // Checks with a positive input -TEST_CASE("Positive_Value", "[Math][Abs]") +TEST_CASE(__FILE__"/Positive_Value", "[Math][Abs]") { REQUIRE(Math::Abs(45.0) == 45.0); return; } // Checks with a negative input -TEST_CASE("Negative_Value", "[Math][Abs]") +TEST_CASE(__FILE__"/Negative_Value", "[Math][Abs]") { REQUIRE(Math::Abs(-45.0) == 45); return; } // Checks with a zero input -TEST_CASE("Zero_Value", "[Math][Abs]") +TEST_CASE(__FILE__"/Zero_Value", "[Math][Abs]") { REQUIRE(Math::Abs(0.0) == 0.0); return; diff --git a/Test/Math__Oscillate.cpp b/Test/Math__Oscillate.cpp index 03cff70..959f9cf 100644 --- a/Test/Math__Oscillate.cpp +++ b/Test/Math__Oscillate.cpp @@ -7,7 +7,7 @@ using namespace Eule; // Checks that an oscillation of speed 1 between -1 and 1 is just equal to sin(counter*pi-pi/2) -TEST_CASE("Oracle_Sin", "[Math][Oscillate]") +TEST_CASE(__FILE__"/Oracle_Sin", "[Math][Oscillate]") { // Test 1000 random floats for (std::size_t i = 0; i < 1000; i++) @@ -27,7 +27,7 @@ TEST_CASE("Oracle_Sin", "[Math][Oscillate]") } // Tests that the result is a, if the counter is 0 or a whole, even integer -TEST_CASE("Returns_a_For_Counter_0", "[Math][Oscillate]") +TEST_CASE(__FILE__"/Returns_a_For_Counter_0", "[Math][Oscillate]") { // Test 1000 random floats for (std::size_t i = 0; i < 1000; i++) @@ -55,7 +55,7 @@ TEST_CASE("Returns_a_For_Counter_0", "[Math][Oscillate]") } // Tests that the result is b, if the counter is a whole, uneven integer -TEST_CASE("Returns_b_For_Uneven_Whole_Counter", "[Math][Oscillate]") +TEST_CASE(__FILE__"/Returns_b_For_Uneven_Whole_Counter", "[Math][Oscillate]") { // Test 1000 random floats for (std::size_t i = 0; i < 1000; i++) @@ -75,7 +75,7 @@ TEST_CASE("Returns_b_For_Uneven_Whole_Counter", "[Math][Oscillate]") } // Tests that the result is (a+b)/2, when counter satisfies (int)x + 0.5 -TEST_CASE("Returns_ab_mean_for_intx_plus_0p5", "[Math][Oscillate]") +TEST_CASE(__FILE__"/Returns_ab_mean_for_intx_plus_0p5", "[Math][Oscillate]") { // Test 1000 random floats for (std::size_t i = 0; i < 1000; i++) @@ -104,7 +104,7 @@ TEST_CASE("Returns_ab_mean_for_intx_plus_0p5", "[Math][Oscillate]") } // Tests that the result is (3a+b)/4, when counter satisfies 2(int)x + 0.25 -TEST_CASE("Returns_3ab_mean_for_intx_plus_0p25_counterbase_even", "[Math][Oscillate]") +TEST_CASE(__FILE__"/Returns_3ab_mean_for_intx_plus_0p25_counterbase_even", "[Math][Oscillate]") { // Test 1000 random floats for (std::size_t i = 0; i < 1000; i++) @@ -133,7 +133,7 @@ TEST_CASE("Returns_3ab_mean_for_intx_plus_0p25_counterbase_even", "[Math][Oscill } // Tests that the result is (a+3b)/4, when counter satisfies 2(int)x + 0.75 -TEST_CASE("Returns_a3b_mean_for_intx_plus_0p75_counterbase_even", "[Math][Oscillate]") +TEST_CASE(__FILE__"/Returns_a3b_mean_for_intx_plus_0p75_counterbase_even", "[Math][Oscillate]") { // Test 1000 random floats for (std::size_t i = 0; i < 1000; i++) @@ -155,7 +155,7 @@ TEST_CASE("Returns_a3b_mean_for_intx_plus_0p75_counterbase_even", "[Math][Oscill } // Tests that the result is (a+3b)/4, when counter satisfies 2(int)x+1 + 0.25 -TEST_CASE("Returns_3ab_mean_for_intx_plus_0p25_counterbase_uneven", "[Math][Oscillate]") +TEST_CASE(__FILE__"/Returns_3ab_mean_for_intx_plus_0p25_counterbase_uneven", "[Math][Oscillate]") { // Test 1000 random floats for (std::size_t i = 0; i < 1000; i++) @@ -177,7 +177,7 @@ TEST_CASE("Returns_3ab_mean_for_intx_plus_0p25_counterbase_uneven", "[Math][Osci } // Tests that the result is (3a+b)/4, when counter satisfies 2(int)x+1 + 0.75 -TEST_CASE("Returns_a3b_mean_for_intx_plus_0p75_counterbase_uneven", "[Math][Oscillate]") +TEST_CASE(__FILE__"/Returns_a3b_mean_for_intx_plus_0p75_counterbase_uneven", "[Math][Oscillate]") { // Test 1000 random floats for (std::size_t i = 0; i < 1000; i++) @@ -199,7 +199,7 @@ TEST_CASE("Returns_a3b_mean_for_intx_plus_0p75_counterbase_uneven", "[Math][Osci } // Tests that doubling the speed will double the frequency -TEST_CASE("Doubling_Speed_Doubles_Frequency", "[Math][Oscillate]") +TEST_CASE(__FILE__"/Doubling_Speed_Doubles_Frequency", "[Math][Oscillate]") { // Test 1000 random floats for (std::size_t i = 0; i < 1000; i++)