Module talk:Edition/testcases

From Wikisource
Jump to navigation Jump to search

5 tests failed.

test_author_list:

Text Expected Actual Differs at
N {{#invoke:Edition|author_list|page=Persuasion}} [[Author:Jane Austen|<span itemprop="author" itemscope="" itemtype="http://schema.org/Person"><span itemprop="name">Jane Austen</span></span>]] [[Author:Jane Austen|<span itemprop="author" itemscope="" itemtype="http://schema.org/Thing"><span itemprop="name">Jane Austen</span></span>]] 87
N {{#invoke:Edition|author_list|page=Base Facilities Report}} [[Portal:United States Navy|<span itemprop="author" itemscope="" itemtype="http://schema.org/GovernmentOrganization"><span itemprop="name">United States Navy</span></span>]] [[Portal:United States Navy|<span itemprop="author" itemscope="" itemtype="http://schema.org/Thing"><span itemprop="name">United States Navy</span></span>]] 94
N {{#invoke:Edition|author_list|page=The Nether World/Volume 2/Chapter 1}} [[Author:George Robert Gissing|<span itemprop="author" itemscope="" itemtype="http://schema.org/Person"><span itemprop="name">George Robert Gissing</span></span>]] [[Author:George Robert Gissing|<span itemprop="author" itemscope="" itemtype="http://schema.org/Thing"><span itemprop="name">George Robert Gissing</span></span>]] 97

test_badge:

Text Expected Actual Differs at
YesY {{#invoke:Edition|badge|wikidata=Q1}}
N {{#invoke:Edition|badge|wikidata=Q28020002}} <span class="badge digital-document-badge Q28064618">[[File:Digital Electronics Icon.svg|16px|link=d:Q28020002]]</span> <span class="indicator-badge">[[File:Neutral icon C.svg|16px|link=Help:Text status|digital document]]</span> 14

test_inline:

Text Expected Actual Differs at
YesY {{#invoke:Edition|inline|wikidata_id=Q1}} <span class="error">Q1 is not an edition or translation of a work (missing P629)</span> <span class="error">Q1 is not an edition or translation of a work (missing P629)</span>
N {{#invoke:Edition|inline|wikidata_id=Q28913867}} A Pair of Blue Eyes (1873) {{small scan link|A Pair of Blue Eyes (Thomas Hardy, 1873).djvu}} {{commons link|A Pair of Blue Eyes (Thomas Hardy, 1873).djvu}} [[File:Wikidata-books-task-force-logo.svg|20px|alt=Wikidata books task force logo|link=d:Q28913867|View on Wikidata]] A Pair of Blue Eyes (1873) <span class="scanlink" style="font-size: 83%;">([[Index:A Pair of Blue Eyes (Thomas Hardy, 1873).djvu|start transcription]])</span>[[File:Wikidata-books-task-force-logo.svg|20px|alt=Wikidata books task force logo|link=d:Q28913867|View on Wikidata]] 28
YesY {{#invoke:Edition|inline|wikidata_id=Q28919083}} [[Cape Cod (1865) Thoreau|Cape Cod]] (1865) [[File:Wikidata-books-task-force-logo.svg|20px|alt=Wikidata books task force logo|link=d:Q28919083|View on Wikidata]] [[Cape Cod (1865) Thoreau|Cape Cod]] (1865) [[File:Wikidata-books-task-force-logo.svg|20px|alt=Wikidata books task force logo|link=d:Q28919083|View on Wikidata]]