Move type-available tests to their own test-set
authorMichael Kay <mike@saxonica.com>
Wed, 01 May 2013 22:42:23 +0100
changeset 199 eb590e57670b
parent 198 88f229690524
child 200 7bd955bafd96
Move type-available tests to their own test-set
catalog.xml
tests/fn/function-available/_function-available-test-set.xml
tests/type/type/_type-test-set.xml
--- a/catalog.xml	Wed May 01 22:42:05 2013 +0100
+++ b/catalog.xml	Wed May 01 22:42:23 2013 +0100
@@ -70,6 +70,7 @@
       <test-set name="resolve-uri" file="tests/fn/resolve-uri/_resolve-uri-test-set.xml"/>         
       <test-set name="root" file="tests/fn/root/_root-test-set.xml"/>
       <test-set name="system-property" file="tests/fn/system-property/_system-property-test-set.xml"/>
+      <test-set name="type-available" file="tests/fn/type-available/_type-available-test-set.xml"/>
       <test-set name="unparsed-text" file="tests/fn/unparsed-text/_unparsed-text-test-set.xml"/>         
       <test-set name="unparsed-text-lines" file="tests/fn/unparsed-text-lines/_unparsed-text-lines-test-set.xml"/>
       
--- a/tests/fn/function-available/_function-available-test-set.xml	Wed May 01 22:42:05 2013 +0100
+++ b/tests/fn/function-available/_function-available-test-set.xml	Wed May 01 22:42:23 2013 +0100
@@ -99,6 +99,26 @@
          <assert-xml file="function-available-1010.out"/>
       </result>
    </test-case>
+   
+   <test-case name="function-available-1011">
+      <description>Test function-available() with EQName arguments</description>
+      <created by="Michael Kay" on="2012-11-07"/>
+      <environment ref="function-available-10"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="function-available-1011.xsl"/>
+      </test>
+      <result>
+         <all-of>
+           <assert>/out/a = 'true'</assert>
+           <assert>/out/b = 'true'</assert>
+           <assert>/out/c = 'false'</assert>
+           <assert>/out/d = 'true'</assert>
+         </all-of>
+      </result>
+   </test-case>
 
    <test-case name="function-available-1015">
       <description>Test of function-available() on the functions true() and false()</description>
--- a/tests/type/type/_type-test-set.xml	Wed May 01 22:42:05 2013 +0100
+++ b/tests/type/type/_type-test-set.xml	Wed May 01 22:42:23 2013 +0100
@@ -740,69 +740,6 @@
       </result>
    </test-case>
 
-   <test-case name="type-0146">
-      <description>Test type-available() (with no schema)</description>
-      <created by="Michael Kay" on="2012-11-07"/>
-      <environment ref="type-01"/>
-      <dependencies>
-         <spec value="XSLT20+"/>
-      </dependencies>
-      <test>
-         <stylesheet file="type-0146.xsl"/>
-      </test>
-      <result>
-         <assert-xml file="type-0146.out"/>
-      </result>
-   </test-case>
-
-   <test-case name="type-0147">
-      <description>Test type-available() (with no schema, but schema-aware processor)</description>
-      <created by="Michael Kay" on="2012-11-07"/>
-      <environment ref="type-01"/>
-      <dependencies>
-         <spec value="XSLT20+"/>
-         <feature value="schema_aware"/>
-      </dependencies>
-      <test>
-         <stylesheet file="type-0147.xsl"/>
-      </test>
-      <result>
-         <assert-xml file="type-0147.out"/>
-      </result>
-   </test-case>
-
-   <test-case name="type-0148">
-      <description>Test type-available() - non-availability of non-primitive types with a basic processor</description>
-      <created by="Michael Kay" on="2012-11-07"/>
-      <environment ref="type-01"/>
-      <dependencies>
-         <spec value="XSLT20"/>
-         <feature value="schema_aware" satisfied="false"/>
-      </dependencies>
-      <test>
-         <stylesheet file="type-0148.xsl"/>
-      </test>
-      <result>
-         <assert-xml><![CDATA[<out><int>false</int><short>false</short><NCName>false</NCName><ID>false</ID><NOTATION>false</NOTATION><ENTITIES>false</ENTITIES><NMTOKENS>false</NMTOKENS></out>]]></assert-xml>
-      </result>
-   </test-case>
-
-   <test-case name="type-0149">
-      <description>Test type-available() - user-defined types, with schema-aware processor)</description>
-      <created by="Michael Kay" on="2012-11-07"/>
-      <environment ref="type-01"/>
-      <dependencies>
-         <spec value="XSLT20+"/>
-         <feature value="schema_aware"/>
-      </dependencies>
-      <test>
-         <stylesheet file="type-0149.xsl"/>
-      </test>
-      <result>
-         <assert-xml><![CDATA[<out><a>true</a><a>true</a><a>true</a><a>true</a></out>]]></assert-xml>
-      </result>
-   </test-case>
-
    <test-case name="type-0150">
       <description>Test dynamic casting of string to xs:QName - permitted in 3.0</description>
       <created by="Michael Kay" on="2012-11-07"/>