(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 '(*TOP* (html (head) (body (div "\n \n" (b "test") "\n ")))) (html->sxml "
\n \ntest\n
")) (test '(*TOP* (html (head) (body (my-custom-tag (@ (data-foo "bar")) "baz")))) (html->sxml "baz"))) (test-exit)