Skip to content

Failures on biblio unit tests #566

@SteffenAstheimer

Description

@SteffenAstheimer

There seems to be one failure and one error in the biblio unit tests:

  • error on bt:test-collectionTitle with A110745:
<testcase name="test-collectionTitle" class="bt:test-collectionTitle">
   <error 
     type="java:org.exist.xquery.XPathException" 
     message="exerr:ERROR The actual return type does not match the sequence type declared 
                        in the function's signature: bt:test-collectionTitle(xs:string) element(). 
                        Expected cardinality: exactly one, got 0. [at line 45, column 37, source:
                        String/-8763405129179873634]&#xA;In function:&#xA;&#x9;bt:test-collectionTitle(xs:string) 
                        [11:5:/db/Steffen/xqsuite/biblio-tests.xqm]&#xA;&#x9;test:apply(function(*), item()*) 
                        [581:9:jar:file:/opt/exist/lib/exist-core-6.3.0.jar!/org/exist/xquery/lib/xqsuite/xqsuite.xql]&#xA;&#x9;test:apply(function(*), element(function), item()*)
                        [488:9:jar:file:/opt/exist/lib/exist-core-6.3.0.jar!/org/exist/xquery/lib/xqsuite/xqsuite.xql]&#xA;&#x9;test:call-test(function(*), element(function), element(annotation)*) 
                        [300:32:jar:file:/opt/exist/lib/exist-core-6.3.0.jar!/org/exist/xquery/lib/xqsuite/xqsuite.xql]. 
                        The actual return type does not match the sequence type declared in the function's signature: 
                        bt:test-collectionTitle(xs:string) element(). Expected cardinality: exactly one, got 0."/>
</testcase>
  • failure on bt:test-printIncollectionCitation with A110181:
<testcase name="test-printIncollectionCitation" class="bt:test-printIncollectionCitation">
   <failure message="assertEquals failed." type="failure-error-code-1">
      &lt;xhtml:div xmlns:xhtml='http://www.w3.org/1999/xhtml'&gt;&lt;xhtml:span class='author'&gt;Michael Charles Tusa&lt;/xhtml:span&gt;, &lt;xhtml:span class='title'&gt;Carl Maria (Friedrich Ernst) von Weber&lt;/xhtml:span&gt;, in: &lt;xhtml:span class='collectionTitle'&gt;The New Grove. Dictionary of Music and Musician. Second Edition&lt;/xhtml:span&gt;, hg. von &lt;xhtml:span class='editor'&gt;Stanley Sadie&lt;/xhtml:span&gt;, &lt;xhtml:span class='placeNYear'&gt;London 2001&lt;/xhtml:span&gt;, S. 135–172&lt;/xhtml:div&gt;
   </failure>
   <output>
        <xhtml:div xmlns:xhtml="http://www.w3.org/1999/xhtml">
              <xhtml:span class="author">Michael Charles Tusa</xhtml:span>, <xhtml:span class="title">Carl Maria (Friedrich Ernst) von Weber</xhtml:span>, in: <xhtml:span class="collectionTitle">The New Grove. Dictionary of Music and Musician. Second Edition</xhtml:span>
                    <xhtml:span class="vol">, Bd. 27</xhtml:span>, hg. von <xhtml:span class="editor">Stanley Sadie</xhtml:span>, <xhtml:span class="placeNYear">London 2001</xhtml:span>, S. 135–172</xhtml:div>
   </output>
</testcase>

-> Here the volume information appears to be missing

Metadata

Metadata

Labels

docType:bibliobugs and features related to the display of biblio entries

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions