From f4e36ec9af5002eaa51c742faa10e4cbc7d66de0 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Fri, 11 Feb 2022 09:36:29 +0100 Subject: [PATCH] Fixed test tags --- StringTools/Test/Lower.cpp | 10 +++++----- StringTools/Test/Replace_Char.cpp | 22 +++++++++++----------- StringTools/Test/Replace_String.cpp | 24 ++++++++++++------------ StringTools/Test/Upper.cpp | 10 +++++----- 4 files changed, 33 insertions(+), 33 deletions(-) diff --git a/StringTools/Test/Lower.cpp b/StringTools/Test/Lower.cpp index a848184..4c8abef 100644 --- a/StringTools/Test/Lower.cpp +++ b/StringTools/Test/Lower.cpp @@ -2,7 +2,7 @@ #include "Catch2.h" // Tests that lowering an empty string returns an empty string -TEST_CASE(__FILE__"/EmptyString", "[LOWER]") +TEST_CASE(__FILE__"/EmptyString", "[Lower]") { // Setup const std::string in = ""; @@ -16,7 +16,7 @@ TEST_CASE(__FILE__"/EmptyString", "[LOWER]") } // Tests that lowering a string without any letters returns itself -TEST_CASE(__FILE__"/Symbols", "[LOWER]") +TEST_CASE(__FILE__"/Symbols", "[Lower]") { // Setup const std::string in = "66! _-\n*"; @@ -30,7 +30,7 @@ TEST_CASE(__FILE__"/Symbols", "[LOWER]") } // Tests that lowering a string of lowercase letters returns itself -TEST_CASE(__FILE__"/AlreadyLowered", "[LOWER]") +TEST_CASE(__FILE__"/AlreadyLowered", "[Lower]") { // Setup const std::string in = "ughareyouserious"; @@ -44,7 +44,7 @@ TEST_CASE(__FILE__"/AlreadyLowered", "[LOWER]") } // Tests that lowering a string of uppercase letters returns the lowercase version -TEST_CASE(__FILE__"/Uppercase", "[LOWER]") +TEST_CASE(__FILE__"/Uppercase", "[Lower]") { // Setup const std::string in = "UGHAREYOUSERIOUS"; @@ -58,7 +58,7 @@ TEST_CASE(__FILE__"/Uppercase", "[LOWER]") } // Tests that lowering a string of uppercase, lowercase letters and symbols returns the lowercase version -TEST_CASE(__FILE__"/Mixed", "[LOWER]") +TEST_CASE(__FILE__"/Mixed", "[Lower]") { // Setup const std::string in = "Ugh, Are You Serious?! DON'T DO THAT!!!"; diff --git a/StringTools/Test/Replace_Char.cpp b/StringTools/Test/Replace_Char.cpp index 4aae394..a880e59 100644 --- a/StringTools/Test/Replace_Char.cpp +++ b/StringTools/Test/Replace_Char.cpp @@ -2,7 +2,7 @@ #include "Catch2.h" // Tests that replacing something in an empty string returns an empty string -TEST_CASE(__FILE__"/EmptyString") +TEST_CASE(__FILE__"/EmptyString", "[ReplaceChar]") { // Setup const std::string in = ""; @@ -16,7 +16,7 @@ TEST_CASE(__FILE__"/EmptyString") } // Tests that replacing a char to an empty string works -TEST_CASE(__FILE__"/Single_ReplaceToEmpty") +TEST_CASE(__FILE__"/Single_ReplaceToEmpty", "[ReplaceChar]") { // Setup const std::string in = "i"; @@ -30,7 +30,7 @@ TEST_CASE(__FILE__"/Single_ReplaceToEmpty") } // Tests that replacing to a single char works -TEST_CASE(__FILE__"/Single_ReplaceToSingleChar") +TEST_CASE(__FILE__"/Single_ReplaceToSingleChar", "[ReplaceChar]") { // Setup const std::string in = "a"; @@ -44,7 +44,7 @@ TEST_CASE(__FILE__"/Single_ReplaceToSingleChar") } // Tests that replacing to a single char works, passing a char -TEST_CASE(__FILE__"/Single_ReplaceToSingleChar_AsChar") +TEST_CASE(__FILE__"/Single_ReplaceToSingleChar_AsChar", "[ReplaceChar]") { // Setup const std::string in = "Oilbanger"; @@ -58,7 +58,7 @@ TEST_CASE(__FILE__"/Single_ReplaceToSingleChar_AsChar") } // Tests that replacing the find to something longer works -TEST_CASE(__FILE__"/Single_ReplaceToLonger") +TEST_CASE(__FILE__"/Single_ReplaceToLonger", "[ReplaceChar]") { // Setup const std::string in = "Littled"; @@ -72,7 +72,7 @@ TEST_CASE(__FILE__"/Single_ReplaceToLonger") } // Tests that replacing a char to an empty string works -TEST_CASE(__FILE__"/Multiple_ReplaceToEmpty") +TEST_CASE(__FILE__"/Multiple_ReplaceToEmpty", "[ReplaceChar]") { // Setup const std::string in = "dirty dogs dig dirt daringly"; @@ -86,7 +86,7 @@ TEST_CASE(__FILE__"/Multiple_ReplaceToEmpty") } // Tests that replacing to a single char works -TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar") +TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar", "[ReplaceChar]") { // Setup const std::string in = "Oilbanger, Bangerfanger, Lattle brattle oaly skattle."; @@ -100,7 +100,7 @@ TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar") } // Tests that replacing to a single char works, passing a char -TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar_AsChar") +TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar_AsChar", "[ReplaceChar]") { // Setup const std::string in = "Oilbanger, Bangerfanger, Lattle brattle oaly skattle."; @@ -114,7 +114,7 @@ TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar_AsChar") } // Tests that replacing the find to something longer works -TEST_CASE(__FILE__"/Multiple_ReplaceToLonger") +TEST_CASE(__FILE__"/Multiple_ReplaceToLonger", "[ReplaceChar]") { // Setup const std::string in = "d d d d d d d d"; @@ -128,7 +128,7 @@ TEST_CASE(__FILE__"/Multiple_ReplaceToLonger") } // Tests that the replacer ignores chars put in by the replacer -TEST_CASE(__FILE__"/ReplacerIgnoresReplaced") +TEST_CASE(__FILE__"/ReplacerIgnoresReplaced", "[ReplaceChar]") { // Setup const std::string in = "b b b b b b b b"; @@ -142,7 +142,7 @@ TEST_CASE(__FILE__"/ReplacerIgnoresReplaced") } // Tests that replacing succesive findings works -TEST_CASE(__FILE__"/Replace_Successive") +TEST_CASE(__FILE__"/Replace_Successive", "[ReplaceChar]") { // Setup const std::string in = "bbbbbbbb"; diff --git a/StringTools/Test/Replace_String.cpp b/StringTools/Test/Replace_String.cpp index cdef64a..f2ef15c 100644 --- a/StringTools/Test/Replace_String.cpp +++ b/StringTools/Test/Replace_String.cpp @@ -2,7 +2,7 @@ #include "Catch2.h" // Tests that replacing something in an empty string returns an empty string -TEST_CASE(__FILE__"/EmptyString") +TEST_CASE(__FILE__"/EmptyString", "[ReplaceString]") { // Setup const std::string in = ""; @@ -16,7 +16,7 @@ TEST_CASE(__FILE__"/EmptyString") } // Tests that replacing a string to an empty string works -TEST_CASE(__FILE__"/Single_ReplaceToEmpty") +TEST_CASE(__FILE__"/Single_ReplaceToEmpty", "[ReplaceString]") { // Setup const std::string in = "Squarepants"; @@ -30,7 +30,7 @@ TEST_CASE(__FILE__"/Single_ReplaceToEmpty") } // Tests that replacing to a single char works -TEST_CASE(__FILE__"/Single_ReplaceToSingleChar") +TEST_CASE(__FILE__"/Single_ReplaceToSingleChar", "[ReplaceString]") { // Setup const std::string in = "Squarepants"; @@ -44,7 +44,7 @@ TEST_CASE(__FILE__"/Single_ReplaceToSingleChar") } // Tests that replacing to a single char works, passing a char -TEST_CASE(__FILE__"/Single_ReplaceToSingleChar_AsChar") +TEST_CASE(__FILE__"/Single_ReplaceToSingleChar_AsChar", "[ReplaceString]") { // Setup const std::string in = "Oilbanger"; @@ -58,7 +58,7 @@ TEST_CASE(__FILE__"/Single_ReplaceToSingleChar_AsChar") } // Tests that replacing the find to something longer works -TEST_CASE(__FILE__"/Single_ReplaceToLonger") +TEST_CASE(__FILE__"/Single_ReplaceToLonger", "[ReplaceString]") { // Setup const std::string in = "LittleDong"; @@ -72,7 +72,7 @@ TEST_CASE(__FILE__"/Single_ReplaceToLonger") } // Tests that replacing a string to an empty string works -TEST_CASE(__FILE__"/Multiple_ReplaceToEmpty") +TEST_CASE(__FILE__"/Multiple_ReplaceToEmpty", "[ReplaceString]") { // Setup const std::string in = "The fucking dogs are fucking eating the fucking chicken."; @@ -86,7 +86,7 @@ TEST_CASE(__FILE__"/Multiple_ReplaceToEmpty") } // Tests that replacing to a single char works -TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar") +TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar", "[ReplaceString]") { // Setup const std::string in = "Oilbsmearynger, Bsmearyngerfsmearynger, Lsmearyttle brsmearyttle osmearyly sksmearyttle."; @@ -100,7 +100,7 @@ TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar") } // Tests that replacing to a single char works, passing a char -TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar_AsChar") +TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar_AsChar", "[ReplaceString]") { // Setup const std::string in = "Oilbsmearynger, Bsmearyngerfsmearynger, Lsmearyttle brsmearyttle osmearyly sksmearyttle."; @@ -114,7 +114,7 @@ TEST_CASE(__FILE__"/Multiple_ReplaceToSingleChar_AsChar") } // Tests that replacing the find to something longer works -TEST_CASE(__FILE__"/Multiple_ReplaceToLonger") +TEST_CASE(__FILE__"/Multiple_ReplaceToLonger", "[ReplaceString]") { // Setup const std::string in = "honk honk honk honk honk honk honk honk"; @@ -128,7 +128,7 @@ TEST_CASE(__FILE__"/Multiple_ReplaceToLonger") } // Tests that the replacer ignores chars put in by the replacer -TEST_CASE(__FILE__"/ReplacerIgnoresReplaced") +TEST_CASE(__FILE__"/ReplacerIgnoresReplaced", "[ReplaceString]") { // Setup const std::string in = "honk honk honk honk honk honk honk honk"; @@ -142,7 +142,7 @@ TEST_CASE(__FILE__"/ReplacerIgnoresReplaced") } // Tests that replacing successive findings works -TEST_CASE(__FILE__"/Replace_Successive") +TEST_CASE(__FILE__"/Replace_Successive", "[ReplaceString]") { // Setup const std::string in = "honkhonkhonkhonkhonkhonkhonkhonk"; @@ -156,7 +156,7 @@ TEST_CASE(__FILE__"/Replace_Successive") } // Tests that if find.length() == 0, it returns just the input -TEST_CASE(__FILE__"/Find_Length0_Returns_Input") +TEST_CASE(__FILE__"/Find_Length0_Returns_Input", "[ReplaceString]") { // Setup const std::string in = "Littled"; diff --git a/StringTools/Test/Upper.cpp b/StringTools/Test/Upper.cpp index bfaf179..ec2087e 100644 --- a/StringTools/Test/Upper.cpp +++ b/StringTools/Test/Upper.cpp @@ -2,7 +2,7 @@ #include "Catch2.h" // Tests that uppering an empty string returns an empty string -TEST_CASE(__FILE__"/EmptyString", "[UPPER]") +TEST_CASE(__FILE__"/EmptyString", "[Upper]") { // Setup const std::string in = ""; @@ -16,7 +16,7 @@ TEST_CASE(__FILE__"/EmptyString", "[UPPER]") } // Tests that uppering a string without any letters returns itself -TEST_CASE(__FILE__"/Symbols", "[UPPER]") +TEST_CASE(__FILE__"/Symbols", "[Upper]") { // Setup const std::string in = "66! _-\n*"; @@ -30,7 +30,7 @@ TEST_CASE(__FILE__"/Symbols", "[UPPER]") } // Tests that uppering a string of uppercase letters returns itself -TEST_CASE(__FILE__"/AlreadyUppered", "[UPPER]") +TEST_CASE(__FILE__"/AlreadyUppered", "[Upper]") { // Setup const std::string in = "UGHAREYOUSERIOUS"; @@ -44,7 +44,7 @@ TEST_CASE(__FILE__"/AlreadyUppered", "[UPPER]") } // Tests that uppering a string of lowercase letters returns the uppercase version -TEST_CASE(__FILE__"/Lowercase", "[UPPER]") +TEST_CASE(__FILE__"/Lowercase", "[Upper]") { // Setup const std::string in = "ughareyouserious"; @@ -58,7 +58,7 @@ TEST_CASE(__FILE__"/Lowercase", "[UPPER]") } // Tests that uppering a string of uppercase, lowercase letters and symbols returns the uppercase version -TEST_CASE(__FILE__"/Mixed", "[UPPER]") +TEST_CASE(__FILE__"/Mixed", "[Upper]") { // Setup const std::string in = "Ugh, Are You Serious?! DON'T do that!!!";