about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-09-24 18:25:02 +0100
committerAlan Pearce2014-09-24 18:25:02 +0100
commit078d97a2f8ca6da814ff0a6d405d5c375f860185 (patch)
tree5fe642dd9cfc3ca2372d65102e08277af524a0e1 /test
parent2b01c9e53ded6e44d75b45fe955f00b79f3ef75e (diff)
downloadmicroformats-078d97a2f8ca6da814ff0a6d405d5c375f860185.tar.lz
microformats-078d97a2f8ca6da814ff0a6d405d5c375f860185.tar.zst
microformats-078d97a2f8ca6da814ff0a6d405d5c375f860185.zip
Concatenate multiple properties with the same name
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_expectations.clj9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index 5c9984d..893872c 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -172,6 +172,15 @@
 (expect {:items [{:type ["h-card"] :properties {:name '("Example User") :url '("http://example.com")}}] :rels {}}
         (parse "<div class=\"h-card\"><a href=\"http://example.com\">Example User</a></div>"))
 
+(expect {:items [{:type ["h-card"] :properties {:name '("Example")
+                                                :url '("http://example.com"
+                                                       "http://myblog.com")}}]
+         :rels {}}
+        (parse "<div class=\"h-card\">
+<p class=\"u-name\">Example</p>
+<a class=\"u-url\" href=\"http://example.com\">My Website</a>
+<a class=\"u-url\" href=\"http://myblog.com\">My Blog</a>
+</div>"))
 
 (expect
  {:items [{:type ["h-adr"],