14 lines
427 B
Common Lisp
14 lines
427 B
Common Lisp
(defpackage #:hsx-test/escaper
|
|
(:use #:cl
|
|
#:rove
|
|
#:hsx/escaper))
|
|
(in-package #:hsx-test/escaper)
|
|
|
|
(deftest escaper-test
|
|
(testing "escape-html-attribute"
|
|
(ok (string= ""foo""
|
|
(escape-html-attribute "\"foo\""))))
|
|
|
|
(testing "escape-html-text-content"
|
|
(ok (string= "&<>"'/`="
|
|
(escape-html-text-content "&<>\"'/`=")))))
|