diff options
| author | Leonetienne <leonetienne@hotmail.de> | 2022-02-12 03:07:11 +0100 |
|---|---|---|
| committer | Leonetienne <leonetienne@hotmail.de> | 2022-02-12 03:07:11 +0100 |
| commit | a6c9e64eb559a58d31f5ea68b8947f460ed8f04b (patch) | |
| tree | 0e5789541a3d26e4c0c1bed8a0585be27fc182ec /StringTools/Test/Upper.cpp | |
| parent | f4e36ec9af5002eaa51c742faa10e4cbc7d66de0 (diff) | |
Better directory structure naming
Diffstat (limited to 'StringTools/Test/Upper.cpp')
| -rw-r--r-- | StringTools/Test/Upper.cpp | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/StringTools/Test/Upper.cpp b/StringTools/Test/Upper.cpp deleted file mode 100644 index ec2087e..0000000 --- a/StringTools/Test/Upper.cpp +++ /dev/null @@ -1,72 +0,0 @@ -#include <StringTools/StringTools.h>
-#include "Catch2.h"
-
-// Tests that uppering an empty string returns an empty string
-TEST_CASE(__FILE__"/EmptyString", "[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", "[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", "[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", "[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", "[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;
-}
|
