about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-09-22 20:16:22 +0100
committerAlan Pearce2014-09-22 20:16:22 +0100
commit0fe95fe03334c62c2c36f0e3a1d2be167fc4a506 (patch)
tree6b064bca252bd34bd1d56dfad1d462ca19e1a11c /test
parent21830ef89ee29c4dfbaa4340601ef837ffb53159 (diff)
downloadmicroformats-0fe95fe03334c62c2c36f0e3a1d2be167fc4a506.tar.lz
microformats-0fe95fe03334c62c2c36f0e3a1d2be167fc4a506.tar.zst
microformats-0fe95fe03334c62c2c36f0e3a1d2be167fc4a506.zip
Trim strings when retrieving property values
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_expectations.clj3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index 498d8e1..05cc052 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -116,5 +116,8 @@
 (expect {:items [{:properties {:name '("Example User")} :type ["h-card"]}] :rels {}}
         (parse "<div class=\"h-card\"><p class=\"p-name\">Example User</p></div>"))
 
+(expect {:items [{:properties {:name '("Example User")} :type ["h-card"]}] :rels {}}
+        (parse "<div class=\"h-card\"><p class=\"p-name\">  Example User  </p></div>"))
+
 (expect {:items [{:type ["h-card"] :properties {:name '("Example User")}}] :rels {}}
         (parse "<p class=\"h-card\">Example User</p>"))