From f42e0bc7576bf3a4ddca02579f98b9fa19952ae0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 12 Sep 2014 20:52:00 +0100 Subject: Add support for parsing empty br/hr tags --- test/microformats/parser_test.clj | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/microformats/parser_test.clj b/test/microformats/parser_test.clj index d9942f4..1de377c 100644 --- a/test/microformats/parser_test.clj +++ b/test/microformats/parser_test.clj @@ -29,3 +29,13 @@ {:items [{:properties {:name "Example User"}}] :rels {}} "
" ))) + +(deftest parse-p-empty-br-hr + (testing "br and hr tags should return empty strings" + (are [ex in] (= ex (parse in)) + {:items [{:properties {:name ""}}] :rels {}} + "