aboutsummaryrefslogtreecommitdiff
path: root/regress/iri_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'regress/iri_test.c')
-rw-r--r--regress/iri_test.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/regress/iri_test.c b/regress/iri_test.c
index a0e7466..cbe3b1a 100644
--- a/regress/iri_test.c
+++ b/regress/iri_test.c
@@ -62,12 +62,12 @@ int run_test(const char*, int, struct iri);
int
diff_iri(struct iri *p, struct iri *exp)
{
- DIFF(p, exp, schema);
- DIFF(p, exp, host);
- DIFF(p, exp, port);
- DIFF(p, exp, path);
- DIFF(p, exp, query);
- DIFF(p, exp, fragment);
+ DIFF(p, exp, schema);
+ DIFF(p, exp, host);
+ DIFF(p, exp, port);
+ DIFF(p, exp, path);
+ DIFF(p, exp, query);
+ DIFF(p, exp, fragment);
return 1;
}
@@ -194,11 +194,11 @@ main(void)
"parse paths with multiple .. elements");
TEST("gemini://omarpolo.com/foo/..",
PASS,
- IRI("gemini", "omarpolo.com", "", "", "", ""),
+ IRI("gemini", "omarpolo.com", "", "", "", ""),
"parse paths with a trailing ..");
TEST("gemini://omarpolo.com/foo/../",
PASS,
- IRI("gemini", "omarpolo.com", "", "", "", ""),
+ IRI("gemini", "omarpolo.com", "", "", "", ""),
"parse paths with a trailing ..");
TEST("gemini://omarpolo.com/foo/../..",
PASS,
@@ -210,15 +210,15 @@ main(void)
"parse paths that would escape the root")
TEST("gemini://omarpolo.com/foo/../foo/../././/bar/baz/.././.././/",
PASS,
- IRI("gemini", "omarpolo.com", "", "", "", ""),
+ IRI("gemini", "omarpolo.com", "", "", "", ""),
"parse path with lots of cleaning available");
TEST("gemini://omarpolo.com//foo",
PASS,
- IRI("gemini", "omarpolo.com", "", "foo", "", ""),
+ IRI("gemini", "omarpolo.com", "", "foo", "", ""),
"Trim initial slashes");
TEST("gemini://omarpolo.com/////foo",
PASS,
- IRI("gemini", "omarpolo.com", "", "foo", "", ""),
+ IRI("gemini", "omarpolo.com", "", "foo", "", ""),
"Trim initial slashes (pt. 2)");
TEST("http://a/b/c/../..",
PASS,
@@ -280,7 +280,7 @@ main(void)
"rejects %00");
/* IRI */
- TEST("foo://bar.com/cafè.gmi",
+ TEST("foo://bar.com/cafè.gmi",
PASS,
IRI("foo", "bar.com", "", "cafè.gmi", "" , ""),
"decode IRI (with a 2-byte utf8 seq)");