From 2615a4e4f343443b33d20c743792472509a9713a Mon Sep 17 00:00:00 2001 From: "J. King" Date: Mon, 23 Mar 2020 13:32:08 -0400 Subject: [PATCH] Entry link tests --- tests/cases/XML/entry-atom.yaml | 54 +++++++++++++++++++++++++++++++++ tests/cases/XML/entry-rss0.yaml | 20 ++++++++++++ tests/cases/XML/entry-rss1.yaml | 16 +++++++++- 3 files changed, 89 insertions(+), 1 deletion(-) diff --git a/tests/cases/XML/entry-atom.yaml b/tests/cases/XML/entry-atom.yaml index dd8d2b5..d79d6e0 100644 --- a/tests/cases/XML/entry-atom.yaml +++ b/tests/cases/XML/entry-atom.yaml @@ -40,3 +40,57 @@ Entry language: lang: fr - id: eek lang: en + +Entry link: + input: > + + + + + + + + + + + + + + + + + output: + format: atom + version: '1.0' + entries: + - link: 'http://example.com/' + - link: 'http://example.com/' + - link: 'http://example.com/' + - link: 'http://example.com/' + +Related link: + input: > + + + + + + + + + + + + + + + + + output: + format: atom + version: '1.0' + entries: + - relatedLink: 'http://example.com/' + - relatedLink: 'http://example.com/' + - relatedLink: 'http://example.com/' + - relatedLink: 'http://example.com/' diff --git a/tests/cases/XML/entry-rss0.yaml b/tests/cases/XML/entry-rss0.yaml index 112ce37..3af1c32 100644 --- a/tests/cases/XML/entry-rss0.yaml +++ b/tests/cases/XML/entry-rss0.yaml @@ -4,7 +4,27 @@ Empty entry: + output: format: rdf version: '0.90' + +Entry link: + input: > + + + + http://example.com/ + + + + http://example.com/ + + + output: + format: rdf + version: '0.90' + entries: + - link: 'http://example.com/' + - link: 'http://example.com/' diff --git a/tests/cases/XML/entry-rss1.yaml b/tests/cases/XML/entry-rss1.yaml index 2f8dc21..7321f60 100644 --- a/tests/cases/XML/entry-rss1.yaml +++ b/tests/cases/XML/entry-rss1.yaml @@ -39,7 +39,7 @@ Dublin Core identifier: entries: - id: blah -Dublin Core identifier and language: +Dublin Core language: input: > @@ -52,3 +52,17 @@ Dublin Core identifier and language: entries: - id: blah lang: fr + +Entry link: + input: > + + + http://example.com/ + + + output: + format: rdf + version: '1.0' + entries: + - id: blah + link: 'http://example.com/'