diff options
Diffstat (limited to 'src/test.cpp')
-rw-r--r-- | src/test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test.cpp b/src/test.cpp index 5e025f2f5..c969c0951 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -171,6 +171,10 @@ struct TestUtilities: public TestBase UASSERT(removeStringEnd("bc", ends) == "b"); UASSERT(removeStringEnd("12c", ends) == "12"); UASSERT(removeStringEnd("foo", ends) == ""); + UASSERT(urlencode("\"Aardvarks lurk, OK?\"") + == "%22Aardvarks%20lurk%2C%20OK%3F%22"); + UASSERT(urldecode("%22Aardvarks%20lurk%2C%20OK%3F%22") + == "\"Aardvarks lurk, OK?\""); } }; |