diff --git a/tests/cases/XML/entry-atom.yaml b/tests/cases/XML/entry-atom.yaml index d79d6e0..3bebf6b 100644 --- a/tests/cases/XML/entry-atom.yaml +++ b/tests/cases/XML/entry-atom.yaml @@ -94,3 +94,20 @@ Related link: - relatedLink: 'http://example.com/' - relatedLink: 'http://example.com/' - relatedLink: 'http://example.com/' + +Creation and update dates: + input: > + + + 2020-01-01T00:00:00Z + 2020-03-03T00:00:00Z + 2020-03-03T00:00:00Z + 2020-04-01T00:00:00Z + + + output: + format: atom + version: '1.0' + entries: + - dateCreated: '2020-01-01T00:00:00Z' + dateModified: '2020-04-01T00:00:00Z' diff --git a/tests/cases/XML/entry-mixed.yaml b/tests/cases/XML/entry-mixed.yaml index 317b18f..fd8fd3c 100644 --- a/tests/cases/XML/entry-mixed.yaml +++ b/tests/cases/XML/entry-mixed.yaml @@ -16,3 +16,26 @@ Atom related link in RSS 2.0: # A reliable related link overrides the RSS 2.0 gu - id: 'http://example.com/' link: 'http://example.org/' relatedLink: 'http://example.net/' + +Update and creation dates: + input: > + + + 2020-03-03T00:00:00Z + + + 2020-03-03T00:00:00Z + 2020-01-01T00:00:00Z + + + 2020-03-03T01:00:00+01:00 + 2020-03-03T00:00:00Z + + + output: + format: rss + entries: + - dateModified: '2020-03-03T00:00:00Z' + - dateCreated: '2020-03-03T00:00:00Z' + dateModified: '2020-01-01T00:00:00Z' + - dateModified: '2020-03-03T01:00:00+01:00' diff --git a/tests/cases/XML/entry-rss1.yaml b/tests/cases/XML/entry-rss1.yaml index 7321f60..f74b11e 100644 --- a/tests/cases/XML/entry-rss1.yaml +++ b/tests/cases/XML/entry-rss1.yaml @@ -55,8 +55,8 @@ Dublin Core language: Entry link: input: > - - + + http://example.com/ @@ -64,5 +64,28 @@ Entry link: format: rdf version: '1.0' entries: - - id: blah - link: 'http://example.com/' + - link: 'http://example.com/' + +Dublin Core dates: + input: > + + + 2020-03-03T00:00:00Z + + + 2020-03-03T00:00:00Z + 2020-01-01T00:00:00Z + + + 2020-03-03T01:00:00+01:00 + 2020-03-03T00:00:00Z + + + output: + format: rdf + version: '1.0' + entries: + - dateModified: '2020-03-03T00:00:00Z' + - dateCreated: '2020-01-01T00:00:00Z' + dateModified: '2020-03-03T00:00:00Z' + - dateModified: '2020-03-03T01:00:00+01:00' diff --git a/tests/cases/XML/entry-rss2.yaml b/tests/cases/XML/entry-rss2.yaml index e7ad1be..90faa24 100644 --- a/tests/cases/XML/entry-rss2.yaml +++ b/tests/cases/XML/entry-rss2.yaml @@ -93,3 +93,26 @@ Related link: link: 'http://example.com/' - id: 'http://example.com/' link: 'http://example.com/blah' + +Update and creation dates: + input: > + + + 2020-03-03T00:00:00Z + + + 2020-03-03T00:00:00Z + 2020-01-01T00:00:00Z + + + 2020-03-03T01:00:00+01:00 + 2020-03-03T00:00:00Z + + + output: + format: rss + entries: + - dateModified: '2020-03-03T00:00:00Z' + - dateCreated: '2020-01-01T00:00:00Z' + dateModified: '2020-03-03T00:00:00Z' + - dateModified: '2020-03-03T01:00:00+01:00'