From 7726d64530f82fc9b8ac08f484491335bd7ca2a4 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sat, 12 Feb 2022 16:04:48 +0100 Subject: Optimized directory structure --- Src/Test/Lower.cpp | 72 ------------------------------------------------------ 1 file changed, 72 deletions(-) delete mode 100644 Src/Test/Lower.cpp (limited to 'Src/Test/Lower.cpp') diff --git a/Src/Test/Lower.cpp b/Src/Test/Lower.cpp deleted file mode 100644 index 4c8abef..0000000 --- a/Src/Test/Lower.cpp +++ /dev/null @@ -1,72 +0,0 @@ -#include -#include "Catch2.h" - -// Tests that lowering an empty string returns an empty string -TEST_CASE(__FILE__"/EmptyString", "[Lower]") -{ - // Setup - const std::string in = ""; - - // Exercise - const std::string out = StringTools::Lower(in); - - // Verify - REQUIRE(out == ""); - return; -} - -// Tests that lowering a string without any letters returns itself -TEST_CASE(__FILE__"/Symbols", "[Lower]") -{ - // Setup - const std::string in = "66! _-\n*"; - - // Exercise - const std::string out = StringTools::Lower(in); - - // Verify - REQUIRE(out == "66! _-\n*"); - return; -} - -// Tests that lowering a string of lowercase letters returns itself -TEST_CASE(__FILE__"/AlreadyLowered", "[Lower]") -{ - // Setup - const std::string in = "ughareyouserious"; - - // Exercise - const std::string out = StringTools::Lower(in); - - // Verify - REQUIRE(out == "ughareyouserious"); - return; -} - -// Tests that lowering a string of uppercase letters returns the lowercase version -TEST_CASE(__FILE__"/Uppercase", "[Lower]") -{ - // Setup - const std::string in = "UGHAREYOUSERIOUS"; - - // Exercise - const std::string out = StringTools::Lower(in); - - // Verify - REQUIRE(out == "ughareyouserious"); - return; -} - -// Tests that lowering a string of uppercase, lowercase letters and symbols returns the lowercase version -TEST_CASE(__FILE__"/Mixed", "[Lower]") -{ - // Setup - const std::string in = "Ugh, Are You Serious?! DON'T DO THAT!!!"; - - // Exercise - const std::string out = StringTools::Lower(in); - - // Verify - REQUIRE(out == "ugh, are you serious?! don't do that!!!"); - return; -} -- cgit v1.2.3