From 08f9c2b929f1a19e39a1cda2743da3837f3cc132 Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Sat, 13 Sep 2014 09:07:35 +0100
Subject: Add u-* parsing capability
---
test/microformats/parser_test.clj | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
(limited to 'test')
diff --git a/test/microformats/parser_test.clj b/test/microformats/parser_test.clj
index a28261e..26cb094 100644
--- a/test/microformats/parser_test.clj
+++ b/test/microformats/parser_test.clj
@@ -36,3 +36,24 @@
{:items [{:properties {:name ""}}] :rels {}}
"
")))
+
+(deftest parse-u-elements
+ (testing "Tags should have their values parsed as a u-* value"
+ (are [ex in] (= ex (parse in))
+ {:items [{:properties {:url "http://example.com"}}] :rels {}}
+ ""
+
+ {:items [{:properties {:photo "http://example.com/someimage.png"}}] :rels {}}
+ ""
+
+ {:items [{:properties {:photo "http://example.com/someimage.png"}}] :rels {}}
+ ""
+
+ {:items [{:properties {:photo "http://example.com/someimage.png"}}] :rels {}}
+ ""
+
+ {:items [{:properties {:photo "http://example.com/someimage.png"}}] :rels {}}
+ ""
+
+ {:items [{:properties {:photo "http://example.com/someimage.png"}}] :rels {}}
+ "")))
--
cgit 1.4.1