Commit d1843ea4 d1843ea4e74aa77017940d6bee7b5e4db2c93754 by Sam Roberts

Updated url_parse() test case.

1 parent 44baec75
......@@ -8,11 +8,9 @@ MULIBS = ../mailbox/.libs/libmailbox.a ../lib/libmailutils.a
EXES = addr mbox-explode mbox-dates mbox-auth url-parse mbox-check
$(EXES): $(MULIBS)
default: $(EXES)
$(EXES): $(MBOXLIB)
$(EXES): $(MULIBS)
# example of parsing the date fields, prints all the incorrectly
# formatted dates in a mailbox.
......
scheme:
scheme:/absolute/path
scheme:relative/path
scheme:///relative/path
scheme:////absolute/path
scheme://%75%73%65%72:%70%61%73%73@%68%6f%73%74
ftp://user:pass@host//a/path
......
scheme: --> SUCCESS
scheme <scheme>
user <>
passwd <>
auth <>
host <>
port 0
path <>
query <>
scheme:/absolute/path --> SUCCESS
scheme <scheme>
user <>
passwd <>
auth <>
host <>
port 0
path </absolute/path>
query <>
scheme:relative/path --> SUCCESS
scheme <scheme>
user <>
passwd <>
auth <>
host <>
port 0
path <relative/path>
query <>
scheme:///relative/path --> SUCCESS
scheme <scheme>
user <>
passwd <>
auth <>
host <>
port 0
path <relative/path>
query <>
scheme:////absolute/path --> SUCCESS
scheme <scheme>
user <>
passwd <>
auth <>
host <>
port 0
path </absolute/path>
query <>
scheme://%75%73%65%72:%70%61%73%73@%68%6f%73%74 --> SUCCESS
scheme <scheme>
user <user>
......