diff options
Diffstat (limited to 'regress/iri_test.c')
-rw-r--r-- | regress/iri_test.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/regress/iri_test.c b/regress/iri_test.c index 32d40a8..fa6d578 100644 --- a/regress/iri_test.c +++ b/regress/iri_test.c @@ -162,6 +162,14 @@ main(void) PASS, IRI("gemini", "naïve.omarpolo.com", "", "", "", ""), "Can percent decode hostnames"); + TEST("gemini://100.64.3.27/", + PASS, + IRI("gemini", "100.64.3.27", "", "", "", ""), + "Accepts IPv4 addresses"); + TEST("gemini://[::1]/", + PASS, + IRI("gemini", "::1", "", "", "", ""), + "Accepts IPv6 addresses"); /* path */ TEST("gemini://omarpolo.com/foo/bar/baz", |