Unit test report for hello-world.xsl

Summary

Test IDTitleSucess/Total
hello-world-0hello-world(), arity 01/1
hello-world-1hello-world(), arity 11/1
elem'elem' template rule2/2
falseFalse negative0/1
Toggle all test cases

hello-world(), arity 0

<xsl:sequence select="hw:hello-world()"/>
Expectedselect: 'Hello, world!'
xs:string
Hello, world!
Result
xs:string
Hello, world!

hello-world(), arity 1

<xsl:sequence select="hw:hello-world('Jeni')"/>
Expectedtest: $t:result eq 'Hello, Jeni!'
Result
xs:string
Hello, Jeni!

'elem' template rule

'elem' #1

<xsl:apply-templates select="."/>
Expected
element(elem1, xs:untyped)
<elem1/>
element(elem2, xs:untyped)
<elem2 id="id"/>
Result
element(elem1, xs:untyped)
<elem1/>
element(elem2, xs:untyped)
<elem2 id="id"/>

'elem' #2

<xsl:apply-templates select="."/>
Expected
element(elem1, xs:untyped)
<elem1/>
element(elem2, xs:untyped)
<elem2 id="id"/>
Result
element(elem1, xs:untyped)
<elem1/>
element(elem2, xs:untyped)
<elem2 id="id"/>

False negative

<xsl:apply-templates select="."/>
Expected
element(elem2, xs:untyped)
<elem2 id="id"/>
Result
element(elem1, xs:untyped)
<elem1/>
element(elem2, xs:untyped)
<elem2 id="id"/>