hsx/tests/escaper.lisp
paku a071924927
Migrate testing framework from fiveam to rove (#18)
* Migrate testing framework from fiveam to rove

* Fix qlfile
2024-09-29 02:10:25 +09:00

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 "&<>\"'/`=")))))