Skip to content

Commit

Permalink
feat: add unit test for issue #217
Browse files Browse the repository at this point in the history
  • Loading branch information
sgodart committed Feb 7, 2024
1 parent fc47916 commit 8af97fe
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
17 changes: 17 additions & 0 deletions testdata/parser/rss/issue_217_enclosure_children.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"items": [
{
"enclosure": {
"url": "http://example.org/enclosure.jpg",
"type": "image/jpeg"
},
"enclosures": [
{
"url": "http://example.org/enclosure.jpg",
"type": "image/jpeg"
}
]
}
],
"version": "2.0"
}
23 changes: 23 additions & 0 deletions testdata/parser/rss/issue_217_enclosure_children.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

<!--
Description: issue #217
-->
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<item>

<enclosure url="http://example.org/enclosure.jpg" type="image/jpeg">
<media:title>
<![CDATA[ <p>Enclosure test title</p> ]]>
</media:title>
<media:copyright>
<![CDATA[ Enclosure copyright ]]>
</media:copyright>
<media:credits>
<![CDATA[ Enclosure credits ]]>
</media:credits>
</enclosure>

</item>
</channel>
</rss>

0 comments on commit 8af97fe

Please sign in to comment.