From 21830ef89ee29c4dfbaa4340601ef837ffb53159 Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Mon, 22 Sep 2014 20:02:22 +0100
Subject: Output lists of values according to spec
---
test/microformats/parser_expectations.clj | 62 +++++++++++++++----------------
1 file changed, 31 insertions(+), 31 deletions(-)
(limited to 'test')
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index 53f9ca5..498d8e1 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -16,91 +16,91 @@
(expect "Foo bar"
(apply str (#'microformats.parser/node-to-html '("Foo " {:tag :strong, :attrs nil, :content ("bar")}))))
-(expect {:name "Name"}
+(expect {:name '("Name")}
(parse-p (snippet "
Name
")))
-(expect {:name "Name Endname"}
+(expect {:name '("Name Endname")}
(parse-p (snippet "Name (this should not be included) Endname
")))
-(expect {:name "Example User"}
+(expect {:name '("Example User")}
(parse-p (snippet "Example User
")))
-(expect {:nickname "exuser"}
+(expect {:nickname '("exuser")}
(parse-p (snippet "exuser
")))
-(expect {:name "Example User"}
+(expect {:name '("Example User")}
(parse-p (snippet "")))
-(expect {:name "Example User"}
+(expect {:name '("Example User")}
(parse-p (snippet "@example")))
-(expect {:name "@example"}
+(expect {:name '("@example")}
(parse-p (snippet "@example")))
-(expect {:name "Example User"}
+(expect {:name '("Example User")}
(parse-p (snippet "")))
-(expect {:name "Example User"}
+(expect {:name '("Example User")}
(parse-p (snippet "Example User")))
-(expect {:name ""}
+(expect {:name '("")}
(parse-p (snippet "
")))
-(expect {:name ""}
+(expect {:name '("")}
(parse-p (snippet "
")))
-(expect {:url "http://example.com"}
+(expect {:url '("http://example.com")}
(parse-u (snippet "Awesome example website")))
-(expect {:photo "http://example.com/someimage.png"}
+(expect {:photo '("http://example.com/someimage.png")}
(parse-u (snippet "")))
-(expect {:photo "http://example.com/someimage.png"}
+(expect {:photo '("http://example.com/someimage.png")}
(parse-u (snippet "")))
-(expect {:photo "http://example.com/someimage.png"}
+(expect {:photo '("http://example.com/someimage.png")}
(parse-u (snippet "")))
-(expect {:photo "http://example.com/someimage.png"}
+(expect {:photo '("http://example.com/someimage.png")}
(parse-u (snippet "")))
-(expect {:photo "http://example.com/someimage.png"}
+(expect {:photo '("http://example.com/someimage.png")}
(parse-u (snippet "http://example.com/someimage.png")))
-(expect {:photo "http://example.com/someimage.png"}
+(expect {:photo '("http://example.com/someimage.png")}
(parse-u (snippet "")))
-(expect {:photo "http://example.com/someimage.png"}
+(expect {:photo '("http://example.com/someimage.png")}
(parse-u (snippet "http://example.com/someimage.png")))
-(expect {:start "2012-08-05T14:50"}
+(expect {:start '("2012-08-05T14:50")}
(parse-dt (snippet "")))
-(expect {:start "2012-08-05T14:50"}
+(expect {:start '("2012-08-05T14:50")}
(parse-dt (snippet "")))
-(expect {:start "2012-08-05T14:50"}
+(expect {:start '("2012-08-05T14:50")}
(parse-dt (snippet "")))
-(expect {:end "2012-08-05T18:00"}
+(expect {:end '("2012-08-05T18:00")}
(parse-dt (snippet "")))
-(expect {:start "2012-08-05T14:50"}
+(expect {:start '("2012-08-05T14:50")}
(parse-dt (snippet "")))
-(expect {:start "2012-08-05T14:50"}
+(expect {:start '("2012-08-05T14:50")}
(parse-dt (snippet "2012-08-05T14:50")))
-(expect {:start "2012-08-05T14:50"}
+(expect {:start '("2012-08-05T14:50")}
(parse-dt (snippet "")))
-(expect {:start "2012-08-05T14:50"}
+(expect {:start '("2012-08-05T14:50")}
(parse-dt (snippet "2012-08-05T14:50")))
-(expect {:start "2012-08-05T14:50"}
+(expect {:start '("2012-08-05T14:50")}
(parse-dt (snippet "")))
-(expect {:content {:html "Here is a load of embedded markup" :value "Here is a load of embedded markup"}}
+(expect {:content '({:html "Here is a load of embedded markup" :value "Here is a load of embedded markup"})}
(parse-e (snippet "Here is a load of embedded markup
")))
(expect {:author ["http://example.com/a"]}
@@ -113,8 +113,8 @@
(expect {:items [] :rels {}}
(parse ""))
-(expect {:items [{:properties {:name "Example User"} :type ["h-card"]}] :rels {}}
+(expect {:items [{:properties {:name '("Example User")} :type ["h-card"]}] :rels {}}
(parse ""))
-(expect {:items [{:type ["h-card"] :properties {:name "Example User"}}] :rels {}}
+(expect {:items [{:type ["h-card"] :properties {:name '("Example User")}}] :rels {}}
(parse "Example User
"))
--
cgit 1.4.1