hsx/tests/escaper.lisp
2024-06-02 14:23:13 +09:00

16 lines
428 B
Common Lisp

(defpackage #:hsx-test/escaper
(:use #:cl
#:fiveam
#:hsx/escaper))
(in-package #:hsx-test/escaper)
(def-suite escaper-test)
(in-suite escaper-test)
(test escape-html-attribute
(is (equal ""foo""
(escape-html-attribute "\"foo\""))))
(test escape-html-text-content
(is (string= "&<>"'/`="
(escape-html-text-content "&<>\"'/`="))))