make sure @ is allowed, and rephrase another test

This commit is contained in:
Omar Polo 2021-02-06 13:57:12 +00:00
parent 52053e1a61
commit 4125c94fda
1 changed files with 8 additions and 0 deletions

View File

@ -208,6 +208,14 @@ main(void)
/* PASS, */
/* IRI("foo", "example.com", "", "foo/", "gne/", ""), */
/* "parse query strings"); */
TEST("foo://ex.com/robots.txt?name=foobar&url=https://foo.com",
PASS,
IRI("foo", "ex.com", "", "robots.txt", "name=foobar&url=https://foo.com", ""),
"Accepts : in queries");
TEST("foo://ex.com/foo?email=foo@bar.com#quuz",
PASS,
IRI("foo", "ex.com", "", "foo", "email=foo@bar.com", "quuz"),
"Accepts @ in queries");
/* fragment */
TEST("foo://bar.co/#foo",