added protocol-relative test to uri.nim
Signed-off-by: enthus1ast <enthus1ast>
This commit is contained in:
parent
9626919cd3
commit
46ac235715
1 changed files with 3 additions and 1 deletions
|
|
@ -465,5 +465,7 @@ when isMainModule:
|
|||
doAssert "file:/dir/file".parseUri().isAbsolute() == true
|
||||
doAssert "file://localhost/dir/file".parseUri().isAbsolute() == true
|
||||
doAssert "https://example.org/URI/resource.txt".parseUri().isAbsolute() == true
|
||||
doAssert "urn:ISSN:1535–3613".parseUri().isAbsolute() == true
|
||||
doAssert "urn:ISSN:1535-3613".parseUri().isAbsolute() == true
|
||||
doAssert "//domain.com/img/logo.png".parseUri().isAbsolute() == false
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue