tests/fn/function-available/_function-available-test-set.xml
author Michael Kay <mike@saxonica.com>
Thu, 24 Mar 2016 00:17:35 +0000
changeset 1311 49675669defe
parent 513 a11b2a2d9598
child 1472 bff9ee071749
permissions -rw-r--r--
New tests for function-available()
513
a11b2a2d9598 Adding keywords for function-available-test-set
abraaksm
parents: 199
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
a11b2a2d9598 Adding keywords for function-available-test-set
abraaksm
parents: 199
diff changeset
     2
<test-set xmlns="http://www.w3.org/2012/10/xslt-test-catalog" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="function-available">
194
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     3
   <description>Tests the function-available() function</description>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     4
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     5
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     6
   <environment name="function-available-08">
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     7
      <source role=".">
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     8
         <content><![CDATA[ 
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     9
<doc>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    10
<name>substring</name>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    11
<name>floor</name>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    12
<name>bench</name>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    13
<name>ceiling</name>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    14
<name>pineapple</name>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    15
</doc>]]></content>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    16
      </source>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    17
   </environment>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    18
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    19
   <environment name="function-available-10">
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    20
      <source role=".">
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    21
         <content><![CDATA[<doc/>]]></content>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    22
      </source>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    23
   </environment>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    24
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    25
   <test-case name="function-available-0204">
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    26
      <description>test function-available() on stylesheet function</description>
513
a11b2a2d9598 Adding keywords for function-available-test-set
abraaksm
parents: 199
diff changeset
    27
      <keywords>xsl:function stylesheet-function fn:function-available</keywords>
194
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    28
      <created by="Michael Kay" on="2012-11-07"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    29
      <environment ref="function-available-10"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    30
      <dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    31
         <spec value="XSLT20+"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    32
      </dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    33
      <test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    34
         <stylesheet file="function-available-0204.xsl"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    35
      </test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    36
      <result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    37
         <assert-xml><![CDATA[<out><true>true</true><false>false</false></out>]]></assert-xml>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    38
      </result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    39
   </test-case>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    40
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    41
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    42
   <test-case name="function-available-0801">
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    43
      <description>test function-available() called dynamically from an expression evaluated lazily</description>
513
a11b2a2d9598 Adding keywords for function-available-test-set
abraaksm
parents: 199
diff changeset
    44
      <keywords>stylesheet-function xsl:function fn:function-available predicate</keywords>
194
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    45
      <created by="Michael Kay" on="2012-11-07"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    46
      <environment ref="function-available-08"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    47
      <dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    48
         <spec value="XSLT20+"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    49
      </dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    50
      <test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    51
         <stylesheet file="function-available-0801.xsl"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    52
      </test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    53
      <result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    54
         <assert-xml><![CDATA[<out>substring,floor,ceiling</out>]]></assert-xml>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    55
      </result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    56
   </test-case>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    57
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    58
   <test-case name="function-available-1006">
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    59
      <description>test function-available() using the fn:namespace</description>
513
a11b2a2d9598 Adding keywords for function-available-test-set
abraaksm
parents: 199
diff changeset
    60
      <keywords>fn:function-available xpath-function-namespace namespace-resolution variable-reference</keywords>
194
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    61
      <created by="Michael Kay" on="2012-11-07"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    62
      <environment ref="function-available-10"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    63
      <dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    64
         <spec value="XSLT10+"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    65
      </dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    66
      <test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    67
         <stylesheet file="function-available-1006.xsl"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    68
      </test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    69
      <result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    70
         <assert-xml file="function-available-1006.out"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    71
      </result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    72
   </test-case>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    73
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    74
   <test-case name="function-available-1008">
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    75
      <description>Test function-available() with two arguments</description>
513
a11b2a2d9598 Adding keywords for function-available-test-set
abraaksm
parents: 199
diff changeset
    76
      <keywords>stylesheet-function xsl:function fn:function-available buildin-functions arity</keywords>
194
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    77
      <created by="Michael Kay" on="2012-11-07"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    78
      <environment ref="function-available-10"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    79
      <dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    80
         <spec value="XSLT20+"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    81
      </dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    82
      <test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    83
         <stylesheet file="function-available-1008.xsl"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    84
      </test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    85
      <result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    86
         <assert-xml file="function-available-1008.out"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    87
      </result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    88
   </test-case>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    89
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    90
   <test-case name="function-available-1010">
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    91
      <description>Test function-available() with dynamic arguments</description>
513
a11b2a2d9598 Adding keywords for function-available-test-set
abraaksm
parents: 199
diff changeset
    92
      <keywords>stylesheet-function xsl:function fn:function-available buildin-functions arity</keywords>
194
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    93
      <created by="Michael Kay" on="2012-11-07"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    94
      <environment ref="function-available-10"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    95
      <dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    96
         <spec value="XSLT20+"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    97
      </dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    98
      <test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    99
         <stylesheet file="function-available-1010.xsl"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   100
      </test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   101
      <result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   102
         <assert-xml file="function-available-1010.out"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   103
      </result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   104
   </test-case>
199
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   105
   
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   106
   <test-case name="function-available-1011">
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   107
      <description>Test function-available() with EQName arguments</description>
513
a11b2a2d9598 Adding keywords for function-available-test-set
abraaksm
parents: 199
diff changeset
   108
      <keywords>stylesheet-function xsl:function fn:function-available buildin-functions arity EQName namespace-resolution</keywords>
199
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   109
      <created by="Michael Kay" on="2012-11-07"/>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   110
      <environment ref="function-available-10"/>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   111
      <dependencies>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   112
         <spec value="XSLT30+"/>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   113
      </dependencies>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   114
      <test>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   115
         <stylesheet file="function-available-1011.xsl"/>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   116
      </test>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   117
      <result>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   118
         <all-of>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   119
           <assert>/out/a = 'true'</assert>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   120
           <assert>/out/b = 'true'</assert>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   121
           <assert>/out/c = 'false'</assert>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   122
           <assert>/out/d = 'true'</assert>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   123
         </all-of>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   124
      </result>
eb590e57670b Move type-available tests to their own test-set
Michael Kay <mike@saxonica.com>
parents: 194
diff changeset
   125
   </test-case>
194
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   126
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   127
   <test-case name="function-available-1015">
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   128
      <description>Test of function-available() on the functions true() and false()</description>
513
a11b2a2d9598 Adding keywords for function-available-test-set
abraaksm
parents: 199
diff changeset
   129
      <keywords>stylesheet-function xsl:function fn:function-available buildin-functions arity fn:true fn:false</keywords>
194
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   130
      <created by="Michael Kay" on="2012-11-07"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   131
      <environment ref="function-available-10"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   132
      <dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   133
         <spec value="XSLT20+"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   134
      </dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   135
      <test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   136
         <stylesheet file="function-available-1015.xsl"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   137
      </test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   138
      <result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   139
         <assert-xml><![CDATA[<out><a>true</a><b>true</b><a>true</a><b>true</b><a>false</a><b>false</b><a>true</a><b>true</b></out>]]></assert-xml>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   140
      </result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   141
   </test-case>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   142
   
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   143
   <test-case name="function-available-1016">
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   144
      <description>Test of function-available() on constructor functions for abstract types</description>
513
a11b2a2d9598 Adding keywords for function-available-test-set
abraaksm
parents: 199
diff changeset
   145
      <keywords>fn:function-available constructor-functions</keywords>
194
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   146
      <created by="Michael Kay" on="2012-11-07"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   147
      <environment ref="function-available-10"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   148
      <dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   149
         <spec value="XSLT20+"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   150
      </dependencies>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   151
      <test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   152
         <stylesheet file="function-available-1016.xsl"/>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   153
      </test>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   154
      <result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   155
         <all-of>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   156
           <assert>/out/a = 'false'</assert>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   157
           <assert>/out/b = 'false'</assert>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   158
           <assert>/out/c = 'false'</assert>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   159
           <assert>/out/d = 'false'</assert>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   160
           <assert>/out/e = 'false'</assert>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   161
           <assert>/out/f = 'false'</assert>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   162
         </all-of>  
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   163
      </result>
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   164
   </test-case>
1311
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   165
   
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   166
   <test-case name="function-available-1017">
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   167
      <description>Test of function-available() on map functions</description>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   168
      <keywords>fn:function-available maps</keywords>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   169
      <created by="Michael Kay" on="2016-03-21"/>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   170
      <environment ref="function-available-10"/>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   171
      <dependencies>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   172
         <spec value="XSLT20+"/>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   173
      </dependencies>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   174
      <test>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   175
         <stylesheet file="function-available-1017.xsl"/>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   176
      </test>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   177
      <result>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   178
         <all-of>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   179
            <assert>every $n in /out/*/*[not(self::z)] satisfies $n = 'true'</assert>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   180
            <assert>every $n in /out/*/z satisfies $n = 'false'</assert>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   181
         </all-of>  
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   182
      </result>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   183
   </test-case>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   184
   
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   185
   <test-case name="function-available-1018">
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   186
      <description>Test of function-available() on higher-order functions</description>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   187
      <keywords>fn:function-available maps</keywords>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   188
      <created by="Michael Kay" on="2016-03-21"/>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   189
      <environment ref="function-available-10"/>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   190
      <dependencies>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   191
         <spec value="XSLT20+"/>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   192
      </dependencies>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   193
      <test>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   194
         <stylesheet file="function-available-1018.xsl"/>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   195
      </test>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   196
      <result>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   197
         <assert>every $n in /out/* satisfies $n = 'true'</assert>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   198
      </result>
49675669defe New tests for function-available()
Michael Kay <mike@saxonica.com>
parents: 513
diff changeset
   199
   </test-case>
194
33b0108ba3f5 Separate function-available tests into their own test-set; add some more tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   200
513
a11b2a2d9598 Adding keywords for function-available-test-set
abraaksm
parents: 199
diff changeset
   201
</test-set>