aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2018-08-05 15:23:56 -0700
committerRichard Walters <rwalters@digitalstirling.com>2018-08-05 15:23:56 -0700
commit54881d9f90acfb1676b3eebb0feb17811d1cc4bf (patch)
tree4bbadb21100a85dc7d95e4fd844e3e3839645860 /test
parenta09abace8d4ec0d2fc9bb65493dfae7b7ce8e0fe (diff)
Use SystemAbstractions::ToLower instead of doing it ourselves
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt1
-rw-r--r--test/src/NormalizeCaseInsensitiveStringTests.cpp41
2 files changed, 0 insertions, 42 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 7f2fc59..a7f6320 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -8,7 +8,6 @@ set(This UriTests)
set(Sources
src/UriTests.cpp
src/CharacterSetTests.cpp
- src/NormalizeCaseInsensitiveStringTests.cpp
src/PercentEncodedCharacterDecoderTests.cpp
)
diff --git a/test/src/NormalizeCaseInsensitiveStringTests.cpp b/test/src/NormalizeCaseInsensitiveStringTests.cpp
deleted file mode 100644
index f68d344..0000000
--- a/test/src/NormalizeCaseInsensitiveStringTests.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * @file NormalizeCaseInsensitiveStringTests.cpp
- *
- * This module contains the unit tests of the Uri::NormalizeCaseInsensitiveString class.
- *
- * © 2018 by Richard Walters
- */
-
-#include <gtest/gtest.h>
-#include <src/NormalizeCaseInsensitiveString.hpp>
-
-TEST(NormalizeCaseInsensitiveStringTests, NormalizeCaseInsensitiveString) {
- ASSERT_EQ(
- "example",
- Uri::NormalizeCaseInsensitiveString("eXAmplE")
- );
- ASSERT_EQ(
- "example",
- Uri::NormalizeCaseInsensitiveString("example")
- );
- ASSERT_EQ(
- "example",
- Uri::NormalizeCaseInsensitiveString("EXAMPLE")
- );
- ASSERT_EQ(
- "foo1bar",
- Uri::NormalizeCaseInsensitiveString("foo1BAR")
- );
- ASSERT_EQ(
- "foo1bar",
- Uri::NormalizeCaseInsensitiveString("fOo1bAr")
- );
- ASSERT_EQ(
- "foo1bar",
- Uri::NormalizeCaseInsensitiveString("foo1bar")
- );
- ASSERT_EQ(
- "foo1bar",
- Uri::NormalizeCaseInsensitiveString("FOO1BAR")
- );
-}