From dc1b88d86c0feffd15489a3f51681a9942d107c0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 12 Oct 2014 00:55:12 +0100 Subject: Whitespace cleanup --- test/microformats/parser_expectations.clj | 46 +++++++++++++++---------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj index 15d41da..a60883d 100644 --- a/test/microformats/parser_expectations.clj +++ b/test/microformats/parser_expectations.clj @@ -34,12 +34,12 @@ (#'microformats.parser/node-to-text))) (expect {:tag :div :attrs {:class "h-card"} - :content ["\n" - {:tag :p :attrs nil - :content [{:tag :a :attrs {:class "h-org"} - :content nil}]} - "\n"]} - (z/node (snippet "
+ :content ["\n" + {:tag :p :attrs nil + :content [{:tag :a :attrs {:class "h-org"} + :content nil}]} + "\n"]} + (z/node (snippet "

"))) @@ -170,7 +170,7 @@ (parse "

Example User

")) (expect {:items '({:properties {:name ("Example User") :url ("http://example.com")} - :type ("h-card")}) :rels {}} + :type ("h-card")}) :rels {}} (parse "
Example User
")) (expect {:items '({:type ("h-card") :properties {:name ("Example User")}}) :rels {}} @@ -183,7 +183,7 @@ (parse "Example User")) (expect {:items '({:type ("h-card") :properties {:name ("Example User") - :photo ("http://example.com/me.png")}}) :rels {}} + :photo ("http://example.com/me.png")}}) :rels {}} (parse "\"Example")) (expect {:items '({:type ("h-card") :properties {:name ("Example User")}}) :rels {}} @@ -205,7 +205,7 @@ (parse "")) (expect {:items '({:type ("h-card") :properties {:name ("Example User") - :photo ("http://example.com/me.png")}}) :rels {}} + :photo ("http://example.com/me.png")}}) :rels {}} (parse "
\"Example
")) (expect {:items '({:type ("h-card") :properties {:photo ("http://example.com/me.png")}}) :rels {}} @@ -215,14 +215,14 @@ (parse "
")) (expect {:items '({:type ("h-card") :properties {:name ("Example User") - :photo ("http://example.com/me.png")}}) :rels {}} + :photo ("http://example.com/me.png")}}) :rels {}} (parse "
\"Example
")) (expect {:items '({:type ("h-card") :properties {:name ("Example User") :url ("http://example.com")}}) :rels {}} (parse "
Example User
")) (expect {:items '({:type ("h-card") :properties {:name ("Example") - :url ("http://example.com" + :url ("http://example.com" "http://myblog.com")}}) :rels {}} (parse "
@@ -241,8 +241,8 @@
")) (expect {:items '({:type ("h-card") - :properties {:name ("Example") - :tel ("01234567890")}}) + :properties {:name ("Example") + :tel ("01234567890")}}) :rels {}} (parse "

Example

@@ -252,13 +252,13 @@ (expect {:items '({:type ("h-adr"), - :properties {:street-address ("665 3rd St."), - :extended-address ("Suite 207"), - :locality ("San Francisco"), - :region ("CA"), - :postal-code ("94107"), - :country-name ("U.S.A."), - :name ("665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.")}}) + :properties {:street-address ("665 3rd St."), + :extended-address ("Suite 207"), + :locality ("San Francisco"), + :region ("CA"), + :postal-code ("94107"), + :country-name ("U.S.A."), + :name ("665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.")}}) :rels {}} (parse "

665 3rd St. @@ -270,13 +270,13 @@

")) (expect {:items '({:type ("h-card" "h-org") - :properties {:name ("Example")}}) + :properties {:name ("Example")}}) :rels {}} (parse "

Example

")) (expect {:items '({:type ("h-card") - :properties {:name ("John Doe") - :org ({:value "Example" + :properties {:name ("John Doe") + :org ({:value "Example" :type ("h-card" "h-org") :properties {:name ("Example")}})}}) :rels {}} -- cgit 1.4.1