summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-03-27 15:41:24 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-03-27 15:41:24 +0100
commitb024c0bcb5c8406e000bbc68e01f986833a09166 (patch)
tree906e34c1f80cff4cfef60c473debbf4704fea2d7 /test
parent8b4df800beeca19848928108addec6fb5f1184b8 (diff)
downloadnetsurf-b024c0bcb5c8406e000bbc68e01f986833a09166.tar.gz
netsurf-b024c0bcb5c8406e000bbc68e01f986833a09166.tar.bz2
Tests: Add nsurl tests for unnecessary and bad escape values.
Diffstat (limited to 'test')
-rw-r--r--test/nsurl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/nsurl.c b/test/nsurl.c
index 4fbf3e1d8..a96ea348e 100644
--- a/test/nsurl.c
+++ b/test/nsurl.c
@@ -153,6 +153,12 @@ static const struct test_pairs create_tests[] = {
/* punycode */
{ "http://a.कॉम/a", "http://a.xn--11b4c3d/a" },
{ "https://smog.大众汽车/test", "https://smog.xn--3oq18vl8pn36a/test"},
+
+ /* unnecessary escape */
+ { "http://%7a%7A/", "http://zz/" },
+
+ /* bad escape */
+ { "http://%1g%G0/", "http://%1g%g0/" },
};
/**