Update URL-parsing tests
Also modifies a test URL to have a question-mark.
This commit is contained in:
parent
d9bead00b4
commit
55362c7075
|
@ -74,7 +74,7 @@
|
||||||
(assert-equal
|
(assert-equal
|
||||||
'("http://localhost:4242/res/img/b/fireplace.jpg"
|
'("http://localhost:4242/res/img/b/fireplace.jpg"
|
||||||
"http://localhost:4242/res/img/b/I’m trying hard to randomly name these directories/more_calming.jpg"
|
"http://localhost:4242/res/img/b/I’m trying hard to randomly name these directories/more_calming.jpg"
|
||||||
"http://localhost:4242/res/img/b/I’m trying hard to randomly name these directories/ĉu ĉi tio sufiĉe hazardas%3F!/classy_fireplace.jpg"
|
"http://localhost:4242/res/img/b/I’m trying hard to randomly name these directories/ĉu ĉi tio sufiĉe hazardas?!/classy_fireplace.jpg"
|
||||||
"http://localhost:4242/res/img/level-2/café.jpg"
|
"http://localhost:4242/res/img/level-2/café.jpg"
|
||||||
"http://localhost:4242/res/img/merry christmas!!! ^_^.jpg"
|
"http://localhost:4242/res/img/merry christmas!!! ^_^.jpg"
|
||||||
"http://localhost:4242/res/style.css"
|
"http://localhost:4242/res/style.css"
|
||||||
|
@ -94,6 +94,11 @@
|
||||||
"/images%21/dad%20alive.jpg"
|
"/images%21/dad%20alive.jpg"
|
||||||
(mirror-img::url-encode-path "/images!/dad alive.jpg")))
|
(mirror-img::url-encode-path "/images!/dad alive.jpg")))
|
||||||
|
|
||||||
|
(define-test url-encode-path.question (:tags '(util))
|
||||||
|
(assert-equal
|
||||||
|
"/images%21/%3F%C4%89u_ne%20tio%20sufi%C4%89e%3F%21.jpg"
|
||||||
|
(mirror-img::url-encode-path "/images!/?ĉu_ne tio sufiĉe?!.jpg")))
|
||||||
|
|
||||||
(define-test uri-explicit-port.http80 (:tags '(util))
|
(define-test uri-explicit-port.http80 (:tags '(util))
|
||||||
(assert-eq
|
(assert-eq
|
||||||
nil
|
nil
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
<p>Three…</p>
|
<p>Three…</p>
|
||||||
|
|
||||||
<figure>
|
<figure>
|
||||||
<img src="http://localhost:4242/res/img/b/I’m trying hard to randomly name these directories/ĉu ĉi tio sufiĉe hazardas%3F!/classy_fireplace.jpg">
|
<img src="http://localhost:4242/res/img/b/I’m trying hard to randomly name these directories/ĉu ĉi tio sufiĉe hazardas?!/classy_fireplace.jpg">
|
||||||
<figcaption><em>You’re surrounded by your superiors.</em>
|
<figcaption><em>You’re surrounded by your superiors.</em>
|
||||||
<a href="https://www.pixiv.net/artworks/115188449">
|
<a href="https://www.pixiv.net/artworks/115188449">
|
||||||
🔗
|
🔗
|
||||||
|
|
Ŝarĝante…
Reference in New Issue