aboutsummaryrefslogtreecommitdiff
path: root/tests/url/testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-09-29 00:12:26 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-09 21:07:02 +0300
commitec9c6f1bbdfd3d86fba493ea56473c0aaf9acad1 (patch)
tree85f063f5fa0ea307d0c8f67e39fdfdd93731cb89 /tests/url/testscript
parent758b64bcf02d9269ae4765ab98d7d46396b3e69a (diff)
Add support for rootless URLs
Diffstat (limited to 'tests/url/testscript')
-rw-r--r--tests/url/testscript21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/url/testscript b/tests/url/testscript
index 4166007..05cc528 100644
--- a/tests/url/testscript
+++ b/tests/url/testscript
@@ -33,7 +33,6 @@ $*
:
{
$* 'file:#f' 2>'no authority, path or query' != 0 : fragment
- $* 'file:aaa' 2>'no authority, path or query' != 0 : junk
$* 'file:' 2>'no authority, path or query' != 0 : none
}
@@ -324,6 +323,24 @@ $*
[null]
[null]
EOO
+
+ $* 'http:a/b/c' 2>'rootless path' != 0 : rootless-path
+ $* 'pkcs11:/abc' 2>'unexpected slash' != 0 : unexpected-slash1
+ $* 'pkcs11:a/bc' 2>'unexpected slash' != 0 : unexpected-slash2
+ }
+
+ : rootless
+ :
+ {
+ : non-empty
+ :
+ $* 'pkcs11:token=sign;object=SIGN%20key' >>EOO
+ pkcs11
+ [null]
+ token=sign;object=SIGN key
+ [null]
+ [null]
+ EOO
}
: query
@@ -388,6 +405,8 @@ $*
$* 'file:/b%7C2' >'file:/b%7C2' : path
$* 'http://a?q=' >'http://a?q=' : query
$* 'http://a#f' >'http://a#f' : fragment
+
+ $* 'pkcs11:object=SIGN%20key' >'pkcs11:object=SIGN%20key' : rootless
}
: wstring