Add group package
This commit is contained in:
parent
1a909aa994
commit
d4275d6967
5 changed files with 56 additions and 4 deletions
16
tests/group.lisp
Normal file
16
tests/group.lisp
Normal 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))))
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue