Tests: Add nsurl tests for unnecessary and bad escape values.

This commit is contained in:
Michael Drake 2017-03-27 15:41:24 +01:00
parent 8b4df800be
commit b024c0bcb5

View File

@ -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/" },
};
/**