mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
web-http.test validates headers
* test-suite/tests/web-http.test (pass-if-parse): Validate header values as well.
This commit is contained in:
parent
69b8c5df14
commit
4855c63441
1 changed files with 3 additions and 2 deletions
|
@ -41,8 +41,9 @@
|
||||||
(syntax-rules ()
|
(syntax-rules ()
|
||||||
((_ sym str val)
|
((_ sym str val)
|
||||||
(pass-if (format #f "~a: ~s -> ~s" 'sym str val)
|
(pass-if (format #f "~a: ~s -> ~s" 'sym str val)
|
||||||
(equal? (parse-header 'sym str)
|
(and (equal? (parse-header 'sym str)
|
||||||
val)))))
|
val)
|
||||||
|
(valid-header? 'sym val))))))
|
||||||
|
|
||||||
(define-syntax pass-if-any-error
|
(define-syntax pass-if-any-error
|
||||||
(syntax-rules ()
|
(syntax-rules ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue