Fixed test tags

This commit is contained in:
Leonetienne 2022-02-11 09:36:29 +01:00
parent 364ce236b3
commit f4e36ec9af
4 changed files with 33 additions and 33 deletions

View File

@ -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!!!";

View File

@ -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";

View File

@ -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";

View File

@ -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!!!";