1
Fork 0
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:
Daniel Hartwig 2011-11-23 20:56:30 +01:00 committed by Andy Wingo
parent 69b8c5df14
commit 4855c63441

View file

@ -41,8 +41,9 @@
(syntax-rules ()
((_ sym str val)
(pass-if (format #f "~a: ~s -> ~s" 'sym str val)
(equal? (parse-header 'sym str)
val)))))
(and (equal? (parse-header 'sym str)
val)
(valid-header? 'sym val))))))
(define-syntax pass-if-any-error
(syntax-rules ()