about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-09-11 17:46:50 +0100
committerAlan Pearce2014-09-11 17:46:50 +0100
commit8bfc60aaf991201d3971a2e7d248f729bf2949ae (patch)
tree393eb073bba2fdb094211b8b018cd3e12612c88e /test
parent94aa44b7d5a33ca2a0efe0a72a582d24d65c0657 (diff)
downloadmicroformats-8bfc60aaf991201d3971a2e7d248f729bf2949ae.tar.lz
microformats-8bfc60aaf991201d3971a2e7d248f729bf2949ae.tar.zst
microformats-8bfc60aaf991201d3971a2e7d248f729bf2949ae.zip
Use class name for property keywords
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_test.clj9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/microformats/parser_test.clj b/test/microformats/parser_test.clj
index 9720ad2..f37906e 100644
--- a/test/microformats/parser_test.clj
+++ b/test/microformats/parser_test.clj
@@ -9,5 +9,10 @@
 
 (deftest parse-p-inner-text
   (testing "Inner text of a p- property should be parsed")
-  (is (= {:items [{:properties {:name "Example User"}}] :rels {}}
-         (parse "<div class=\"h-card\"><p class=\"p-name\">Example User</p></div>"))))
+  (are [ex in] (= ex (parse in))
+       {:items [{:properties {:name "Example User"}}] :rels {}}
+       "<div class=\"h-card\"><p class=\"p-name\">Example User</p></div>"
+
+       {:items [{:properties {:nickname "exuser"}}] :rels {}}
+       "<div class=\"h-card\"><p class=\"p-nickname\">exuser</p></div>"
+       ))