diff options
Diffstat (limited to 'util/t/uriparse/parse-retard-uri')
-rwxr-xr-x | util/t/uriparse/parse-retard-uri | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/util/t/uriparse/parse-retard-uri b/util/t/uriparse/parse-retard-uri new file mode 100755 index 00000000..14aab28e --- /dev/null +++ b/util/t/uriparse/parse-retard-uri @@ -0,0 +1,13 @@ +#!/bin/sh +set -euf +tempfile="`mktemp /tmp/test.XXXXXXXX`" +trap "/bin/rm -f $tempfile" EXIT INT + +uriparse "http://'lolwut:\"khan@domain.tld/'''" > $tempfile +. $tempfile +[ $HOSTN == "domain.tld" ] && \ + [ "$USERNAME" == "'lolwut" ] && \ + [ "$PASSWORD" == '"khan' ] && \ + [ "$URIPATH" == "/'''" ] + + |