summaryrefslogtreecommitdiffstats
path: root/Test/String__Upper.cpp
diff options
context:
space:
mode:
authorLeonetienne <leon@etiennes.de>2022-05-16 23:57:26 +0200
committerLeonetienne <leon@etiennes.de>2022-05-16 23:57:26 +0200
commit954629f6bc3b7753c5be0c08e0cdb5caf1056d23 (patch)
tree33a95f60202135f9fcc689e081a64f2d274d7d99 /Test/String__Upper.cpp
parent1fe3eeb14470470d8c95c40c98a12c15320bcd57 (diff)
Adhere to new project structure
Diffstat (limited to 'Test/String__Upper.cpp')
-rw-r--r--Test/String__Upper.cpp72
1 files changed, 0 insertions, 72 deletions
diff --git a/Test/String__Upper.cpp b/Test/String__Upper.cpp
deleted file mode 100644
index 37fe7b7..0000000
--- a/Test/String__Upper.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-#include <StringTools.h>
-#include "Catch2.h"
-
-// Tests that uppering an empty string returns an empty string
-TEST_CASE(__FILE__"/EmptyString", "[Strings][Upper]")
-{
- // Setup
- const std::string in = "";
-
- // Exercise
- const std::string out = StringTools::Upper(in);
-
- // Verify
- REQUIRE(out == "");
- return;
-}
-
-// Tests that uppering a string without any letters returns itself
-TEST_CASE(__FILE__"/Symbols", "[Strings][Upper]")
-{
- // Setup
- const std::string in = "66! _-\n*";
-
- // Exercise
- const std::string out = StringTools::Upper(in);
-
- // Verify
- REQUIRE(out == "66! _-\n*");
- return;
-}
-
-// Tests that uppering a string of uppercase letters returns itself
-TEST_CASE(__FILE__"/AlreadyUppered", "[Strings][Upper]")
-{
- // Setup
- const std::string in = "UGHAREYOUSERIOUS";
-
- // Exercise
- const std::string out = StringTools::Upper(in);
-
- // Verify
- REQUIRE(out == "UGHAREYOUSERIOUS");
- return;
-}
-
-// Tests that uppering a string of lowercase letters returns the uppercase version
-TEST_CASE(__FILE__"/Lowercase", "[Strings][Upper]")
-{
- // Setup
- const std::string in = "ughareyouserious";
-
- // Exercise
- const std::string out = StringTools::Upper(in);
-
- // Verify
- REQUIRE(out == "UGHAREYOUSERIOUS");
- return;
-}
-
-// Tests that uppering a string of uppercase, lowercase letters and symbols returns the uppercase version
-TEST_CASE(__FILE__"/Mixed", "[Strings][Upper]")
-{
- // Setup
- const std::string in = "Ugh, Are You Serious?! DON'T do that!!!";
-
- // Exercise
- const std::string out = StringTools::Upper(in);
-
- // Verify
- REQUIRE(out == "UGH, ARE YOU SERIOUS?! DON'T DO THAT!!!");
- return;
-}