diff options
author | Alan Pearce | 2014-09-23 19:05:47 +0100 |
---|---|---|
committer | Alan Pearce | 2014-09-23 19:05:47 +0100 |
commit | 46d8526af589558b7ed1a2537e96953245c08720 (patch) | |
tree | a7515742e9685cee5e4d33b7f64dd90e25004729 /test | |
parent | 4f80b088207c13f787a2b2bfbb5a716fe9a5dbb5 (diff) | |
download | microformats-46d8526af589558b7ed1a2537e96953245c08720.tar.lz microformats-46d8526af589558b7ed1a2537e96953245c08720.tar.zst microformats-46d8526af589558b7ed1a2537e96953245c08720.zip |
Add basic implied URL parsing
Diffstat (limited to 'test')
-rw-r--r-- | test/microformats/parser_expectations.clj | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj index 2fc8a19..bf39778 100644 --- a/test/microformats/parser_expectations.clj +++ b/test/microformats/parser_expectations.clj @@ -130,6 +130,9 @@ (expect {:items [{:type ["h-card"] :properties {:name '("Example User")}}] :rels {}} (parse "<p class=\"h-card\">Example User</p>")) +(expect {:items [{:type ["h-card"] :properties {:name '("Example User") :url '("http://example.com")}}] :rels {}} + (parse "<a class=\"h-card\" href=\"http://example.com\">Example User</a>")) + (expect {:items [{:type ["h-adr"], :properties {:street-address '("665 3rd St."), |