Further explain silent acceptance of unencoded characters.
Also highlight the two tests that use that.
original commit: 8d55b892ec
This commit is contained in:
parent
ff56800079
commit
f92a8c4e45
|
@ -44,7 +44,7 @@
|
||||||
=> (->vec expected)))
|
=> (->vec expected)))
|
||||||
|
|
||||||
(provide tests)
|
(provide tests)
|
||||||
(module+ main (tests))
|
(module+ main (test do (tests)))
|
||||||
(define (tests)
|
(define (tests)
|
||||||
(test
|
(test
|
||||||
;; Test the current-proxy-servers parameter can be set
|
;; Test the current-proxy-servers parameter can be set
|
||||||
|
@ -254,9 +254,12 @@
|
||||||
(test-s->u #("mailto" #f #f #f #f (#("robby@racket-lang.org")) () #f)
|
(test-s->u #("mailto" #f #f #f #f (#("robby@racket-lang.org")) () #f)
|
||||||
"mailto:robby@racket-lang.org")
|
"mailto:robby@racket-lang.org")
|
||||||
|
|
||||||
|
;; The following two tests are not really correct: they rely on the URL
|
||||||
|
;; decoding silently passing un-encoded text as is instead of barfing. (Eg,
|
||||||
|
;; using these URLs in a browser and then copy-pasting it from the address
|
||||||
|
;; should get you a properly encoded string instead.)
|
||||||
(test (string->url/vec "http://www.drscheme.org?bar=馨慧")
|
(test (string->url/vec "http://www.drscheme.org?bar=馨慧")
|
||||||
#("http" #f "www.drscheme.org" #f #f () ((bar . "馨慧")) #f))
|
#("http" #f "www.drscheme.org" #f #f () ((bar . "馨慧")) #f))
|
||||||
|
|
||||||
(test (string->url/vec "http://www.drscheme.org?bár=é")
|
(test (string->url/vec "http://www.drscheme.org?bár=é")
|
||||||
=> #("http" #f "www.drscheme.org" #f #f () ((bár . "é")) #f))
|
=> #("http" #f "www.drscheme.org" #f #f () ((bár . "é")) #f))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user