Skip to content


Fixed basic test assertions (closing parens were in the wrong place) #28

merged 1 commit into from

2 participants


In basic core tests, nothing was really asserted because expected value was included in the html expr:

(is (= (html [:div] "<div></div>")))
@weavejester weavejester merged commit f6e598c into weavejester:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 7, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/hiccup/test/core.clj
6 test/hiccup/test/core.clj
@@ -12,9 +12,9 @@
(deftest tag-names
(testing "basic tags"
- (is (= (html [:div] "<div></div>")))
- (is (= (html ["div"] "<div></div>")))
- (is (= (html ['div] "<div></div>"))))
+ (is (= (html [:div]) "<div></div>"))
+ (is (= (html ["div"]) "<div></div>"))
+ (is (= (html ['div]) "<div></div>")))
(testing "tag syntax sugar"
(is (= (html [:div#foo]) "<div id=\"foo\"></div>"))
(is (= (html []) "<div class=\"foo\"></div>"))
Something went wrong with that request. Please try again.