From fa7c420442d3a0fb91879a1c8a8be3e816addde8 Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sat, 3 Apr 2021 22:03:50 +0200 Subject: [PATCH] tests/utils: Add tests for UriDecode --- tests/zm_utils.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/zm_utils.cpp b/tests/zm_utils.cpp index 1581949ff..58c87123a 100644 --- a/tests/zm_utils.cpp +++ b/tests/zm_utils.cpp @@ -154,3 +154,8 @@ TEST_CASE("base64Encode") { REQUIRE(base64Encode("fooba") == "Zm9vYmE="); REQUIRE(base64Encode("foobar") == "Zm9vYmFy"); } + +TEST_CASE("UriDecode") { + REQUIRE(UriDecode("abcABC123-_.~%21%28%29%26%3d%20") == "abcABC123-_.~!()&= "); + REQUIRE(UriDecode("abcABC123-_.~%21%28%29%26%3d+") == "abcABC123-_.~!()&= "); +}