Add US-ASCII unprintable control characters to the exlusion list per RFC2396 2.4.3
[puri.git] / tests.lisp
index b5cbe37e8132ddff3ae926c89c226e0d384811de..77d19612ad56fb7af08b630a51503ad1c5712adb 100644 (file)
        :condition-type 'uri-parse-error)
      res)
 
+
+    ;;an escaped newline isn't rendered properly
+    (push
+    `(let ((weird-uri "https://example.com/q?foo%0abar%20baz"))
+       (test
+       weird-uri
+       (puri:render-uri (puri:parse-uri weird-uri) nil)
+       :test #'string=)
+     ) res)
+
     `(progn ,@(nreverse res))))
 
 (defun do-tests ()