diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2004-10-02 19:29:59 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2004-10-02 19:29:59 +0000 |
commit | 815aa28e20edc460a309e6faee73e71cbd4736ba (patch) | |
tree | fdc505a71d237b01db6d60e4ccc161aa2b9f6b63 /test/uri-tests.c | |
parent | 25b639dbf4f487992ad414d30101a70feade1029 (diff) | |
download | neon-815aa28e20edc460a309e6faee73e71cbd4736ba.tar.gz |
Import neon-0.24.3.
git-svn-id: http://svn.webdav.org/repos/projects/neon/branches/0.24.x@249 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'test/uri-tests.c')
-rw-r--r-- | test/uri-tests.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/uri-tests.c b/test/uri-tests.c index ce35f22..753c376 100644 --- a/test/uri-tests.c +++ b/test/uri-tests.c @@ -288,16 +288,16 @@ static int parse(void) for (n = 0; uritests[n].uri != NULL; n++) { ne_uri res; - const struct test_uri *exp = &uritests[n]; - ONV(ne_uri_parse(exp->uri, &res) != 0, - ("%s: parse failed", exp->uri)); - ONV(res.port != exp->port, - ("%s: parsed port was %d not %d", exp->uri, res.port, exp->port)); - ONCMP(exp->scheme, res.scheme, exp->uri, "scheme"); - ONCMP(exp->host, res.host, exp->uri, "host"); - ONV(strcmp(res.path, exp->path), - ("%s: parsed path was %s not %s", exp->uri, res.path, exp->path)); - ONCMP(exp->authinfo, res.authinfo, exp->uri, "authinfo"); + const struct test_uri *e = &uritests[n]; + ONV(ne_uri_parse(e->uri, &res) != 0, + ("%s: parse failed", e->uri)); + ONV(res.port != e->port, + ("%s: parsed port was %d not %d", e->uri, res.port, e->port)); + ONCMP(e->scheme, res.scheme, e->uri, "scheme"); + ONCMP(e->host, res.host, e->uri, "host"); + ONV(strcmp(res.path, e->path), + ("%s: parsed path was %s not %s", e->uri, res.path, e->path)); + ONCMP(e->authinfo, res.authinfo, e->uri, "authinfo"); ne_uri_free(&res); } |