diff options
author | Omar Polo <op@omarpolo.com> | 2024-06-10 11:43:38 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2024-06-10 11:43:38 +0000 |
commit | 5810af408cfb137eae2b62b1bcb749006376e860 (patch) | |
tree | 8db6ad2203f2a21e68a7c511b442304c4f23c944 | |
parent | 7f6c46ae1ea4288c371a85080ff67fc406980241 (diff) |
indent
-rw-r--r-- | regress/iri_test.c | 24 |
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)"); |