From 90d4ef777d61af7ad1990e9b3a65e42f591ed1ce Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 11 Sep 2014 18:10:03 +0100 Subject: Get correct property value for special tags img, area, abbr, data and input tags are all consumed differently. --- test/microformats/parser_test.clj | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') diff --git a/test/microformats/parser_test.clj b/test/microformats/parser_test.clj index f37906e..d9942f4 100644 --- a/test/microformats/parser_test.clj +++ b/test/microformats/parser_test.clj @@ -16,3 +16,16 @@ {:items [{:properties {:nickname "exuser"}}] :rels {}} "

exuser

" )) + +(deftest parse-p-special-elements + (testing "img, abbr and data elements should be parsed differently" + (are [ex in] (= ex (parse in)) + {:items [{:properties {:name "Example User"}}] :rels {}} + "
\"Example
" + + {:items [{:properties {:name "Example User"}}] :rels {}} + "
@example
" + + {:items [{:properties {:name "Example User"}}] :rels {}} + "
" + ))) -- cgit 1.4.1