From ad7798bf10d8cc64f28a6bcdd1e83e1ae77cc14e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 15 Sep 2014 21:14:09 +0100 Subject: Implement some basic value-class parsing --- test/microformats/parser_expectations.clj | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj index 0602119..9c8ce1d 100644 --- a/test/microformats/parser_expectations.clj +++ b/test/microformats/parser_expectations.clj @@ -12,6 +12,12 @@ (expect "Foo bar" (apply str (#'microformats.parser/node-to-html '("Foo " {:tag :strong, :attrs nil, :content ("bar")})))) +(expect {:name "Name"} + (parse-p (first (html-snippet "

Name

")))) + +(expect {:name "Name Endname"} + (parse-p (first (html-snippet "

Name (this should not be included) Endname

")))) + (expect {:name "Example User"} (parse-p (first (html-snippet "

Example User

")))) -- cgit 1.4.1