summaryrefslogtreecommitdiffhomepage
path: root/tests/test-url.cpp
blob: 2e56d2a1d5d2677ad453c4d2343ddf27652682e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <gtest/gtest.h>

#include "url.h"

class URLTest: public ::testing::Test
{
protected:
 URLTest(){
 }

 ~URLTest() override{
 }

 void SetUp() override
 {
 }

 void TearDown() override
 {
 }

};

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");
}