(use gumbo test) (test-group "parse some html" (test '(*TOP* (html (head) (body (h1 "Test")))) (html->sxml "

Test

")) (test '(*TOP* (html (head) (body (div "one" (b "two" (i "three")) "four")))) (html->sxml "
onetwothreefour
")) (test '(*TOP* (html (head) (body (h1 (@ (class "foo") (id "bar")) "Test")))) (html->sxml "

Test

")) (test '(*TOP* (*COMMENT* " example comment ") (html (head) (body))) (html->sxml "")) (test '(*TOP* (html (head (template (b "test"))) (body))) (html->sxml ""))) (test-exit)