summaryrefslogtreecommitdiffhomepage
path: root/tests/test-url.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-url.cpp')
-rw-r--r--tests/test-url.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test-url.cpp b/tests/test-url.cpp
index 2f5075a..2e56d2a 100644
--- a/tests/test-url.cpp
+++ b/tests/test-url.cpp
@@ -1,6 +1,6 @@
#include <gtest/gtest.h>
-#include "file.h"
+#include "url.h"
class URLTest: public ::testing::Test
{
@@ -20,3 +20,11 @@ protected:
}
};
+
+TEST_F(URLTest, urlDecode)
+{
+ EXPECT_EQ(Reichwein::URL::urlDecode(""), "");
+ EXPECT_EQ(Reichwein::URL::urlDecode("abc"), "abc");
+ EXPECT_EQ(Reichwein::URL::urlDecode("a+b+c"), "a b c");
+ EXPECT_EQ(Reichwein::URL::urlDecode("a+b%41c"), "a bAc");
+}