about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-09-25 18:40:35 +0100
committerAlan Pearce2014-09-25 18:40:35 +0100
commit652b21ab446448e52a0a1a2e8a43ff98968a549f (patch)
tree6ff5c78e2076c16ae170aa99d781664f836b3496 /test
parent1fdbc8e2e73837af5447e18f44d6ca3286b233d2 (diff)
downloadmicroformats-652b21ab446448e52a0a1a2e8a43ff98968a549f.tar.lz
microformats-652b21ab446448e52a0a1a2e8a43ff98968a549f.tar.zst
microformats-652b21ab446448e52a0a1a2e8a43ff98968a549f.zip
Add test for multiple microformats per element
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_expectations.clj5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index 7a94929..1783af5 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -214,3 +214,8 @@
 <span class=\"p-postal-code\">94107</span>
 <span class=\"p-country-name\">U.S.A.</span>
 </p>"))
+
+(expect {:items [{:type ["h-card" "h-org"]
+                  :properties {:name '("Example")}}]
+         :rels {}}
+        (parse "<p class=\"h-card h-org\">Example</p>"))