Add group package

This commit is contained in:
Akira Tempaku 2024-06-01 20:14:17 +09:00
parent 1a909aa994
commit d4275d6967
5 changed files with 56 additions and 4 deletions

16
tests/group.lisp Normal file
View file

@ -0,0 +1,16 @@
(defpackage #:hsx-test/group
(:use #:cl
#:fiveam
#:hsx/group))
(in-package #:hsx-test/group)
(def-suite group-test)
(in-suite group-test)
(defgroup fruit
apple banana orange)
(test defgroup
(is (hash-table-p *fruit*))
(is (fruit-p :apple))
(is (not (fruit-p :tomato))))

View file

@ -48,6 +48,10 @@
"foo"
(span "bar"))))))
(test self-closing-tag
(is (string= "<img src=\"/background.png\">"
(render (img :src "/background.png")))))
(test fragment
(let ((frg (<>
(li "bar")