Adding keywords for xml-to-json-test-set keywords
authorabraaksm
Sun, 27 Jul 2014 19:33:39 +0200
branchkeywords
changeset 527 133449f5df75
parent 526 f025b3630be7
child 528 91fcc86b0e2f
Adding keywords for xml-to-json-test-set
tests/fn/xml-to-json/_xml-to-json-test-set.xml
--- a/tests/fn/xml-to-json/_xml-to-json-test-set.xml	Sun Jul 27 19:33:20 2014 +0200
+++ b/tests/fn/xml-to-json/_xml-to-json-test-set.xml	Sun Jul 27 19:33:39 2014 +0200
@@ -1,7 +1,5 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<test-set xmlns:xs="http://www.w3.org/2001/XMLSchema"
-          xmlns="http://www.w3.org/2012/10/xslt-test-catalog"
-          name="xml-to-json">
+<?xml version="1.0" encoding="UTF-8"?>
+<test-set xmlns="http://www.w3.org/2012/10/xslt-test-catalog" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="xml-to-json">
    <description>xml-to-json() function</description>
    
    <environment name="xml-to-json-A">
@@ -18,6 +16,7 @@
    
    <test-case name="xml-to-json-A001">
       <description>Test of xml-to-json: simple "null" content</description>
+      <keywords>simple-content fn:xml-to-json fn:json-to-xml json-null</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -30,6 +29,7 @@
    
    <test-case name="xml-to-json-A002">
       <description>Test of xml-to-json: simple "true" content</description>
+      <keywords>simple-content fn:xml-to-json fn:json-to-xml json-boolean</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -42,6 +42,7 @@
    
    <test-case name="xml-to-json-A003">
       <description>Test of xml-to-json: simple "false" content</description>
+      <keywords>simple-content fn:xml-to-json fn:json-to-xml json-boolean</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -54,6 +55,7 @@
    
    <test-case name="xml-to-json-A004">
       <description>Test of xml-to-json: simple numeric content</description>
+      <keywords>simple-content json-numeric fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -66,6 +68,7 @@
    
    <test-case name="xml-to-json-A005">
       <description>Test of xml-to-json: simple string content</description>
+      <keywords>simple-content json-string fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -78,6 +81,7 @@
    
    <test-case name="xml-to-json-A006">
       <description>Test of xml-to-json: empty string content</description>
+      <keywords>json-string fn:xml-to-json fn:json-to-xml simple-content</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -90,6 +94,7 @@
    
    <test-case name="xml-to-json-A007">
       <description>Test of xml-to-json: empty array</description>
+      <keywords>json-array fn:xml-to-json fn:json-to-xml simple-content</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -102,6 +107,7 @@
    
    <test-case name="xml-to-json-A008">
       <description>Test of xml-to-json: singleton array</description>
+      <keywords>json-array fn:xml-to-json fn:json-to-xml simple-content</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -114,6 +120,7 @@
    
    <test-case name="xml-to-json-A009">
       <description>Test of xml-to-json: two-member array</description>
+      <keywords>json-array json-boolean fn:xml-to-json fn:json-to-xml simple-content</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -126,6 +133,7 @@
    
    <test-case name="xml-to-json-A010">
       <description>Test of xml-to-json: 5-member array</description>
+      <keywords>json-array json-string fn:xml-to-json fn:json-to-xml simple-content</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -138,6 +146,7 @@
    
    <test-case name="xml-to-json-A011">
       <description>Test of xml-to-json: empty map</description>
+      <keywords>json-map fn:xml-to-json fn:json-to-xml simple-content</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -150,6 +159,7 @@
    
    <test-case name="xml-to-json-A012">
       <description>Test of xml-to-json: single-entry map</description>
+      <keywords>json-map fn:xml-to-json fn:json-to-xml simple-content</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -162,6 +172,7 @@
    
    <test-case name="xml-to-json-A013">
       <description>Test of xml-to-json: five-entry map</description>
+      <keywords>json-map fn:xml-to-json fn:json-to-xml simple-content</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -175,6 +186,7 @@
    
    <test-case name="xml-to-json-A014">
       <description>Test of xml-to-json: complex map</description>
+      <keywords>json-map complex-content fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-A"/>
       <test>
@@ -188,170 +200,198 @@
    
    <test-case name="xml-to-json-B001">
       <description>Test of xml-to-json: simple "null" content, indented</description>
+      <keywords>simple-content json-null json-indented fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t001"/>
       </test>
       <result>
-         <assert>translate(/t001, ' &#xa;&#x9;&#xd;', '') = "null"</assert>
+         <assert>translate(/t001, ' 
+	&#xD;', '') = "null"</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B002">
       <description>Test of xml-to-json: simple "true" content, indented</description>
+      <keywords>simple-content json-boolean json-indented fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t002"/>
       </test>
       <result>
-         <assert>translate(/t002, ' &#xa;&#x9;&#xd;', '') = "true"</assert>
+         <assert>translate(/t002, ' 
+	&#xD;', '') = "true"</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B003">
       <description>Test of xml-to-json: simple "false" content, indented</description>
+      <keywords>simple-content json-boolean json-indented fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t003"/>
       </test>
       <result>
-         <assert>translate(/t003, ' &#xa;&#x9;&#xd;', '') = "false"</assert>
+         <assert>translate(/t003, ' 
+	&#xD;', '') = "false"</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B004">
       <description>Test of xml-to-json: simple numeric content, indented</description>
+      <keywords>simple-content json-numeric json-indented fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t004"/>
       </test>
       <result>
-         <assert>translate(/t004, ' &#xa;&#x9;&#xd;', '') = '93.7'</assert>
+         <assert>translate(/t004, ' 
+	&#xD;', '') = '93.7'</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B005">
       <description>Test of xml-to-json: simple string content, indented</description>
+      <keywords>json-indented simple-content json-string fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t005"/>
       </test>
       <result>
-         <assert>translate(/t005, ' &#xa;&#x9;&#xd;', '') = '"London"'</assert>
+         <assert>translate(/t005, ' 
+	&#xD;', '') = '"London"'</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B006">
       <description>Test of xml-to-json: empty string content, indented</description>
+      <keywords>json-string json-indented simple-content fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t006"/>
       </test>
       <result>
-         <assert>translate(/t006, ' &#xa;&#x9;&#xd;', '') = '""'</assert>
+         <assert>translate(/t006, ' 
+	&#xD;', '') = '""'</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B007">
       <description>Test of xml-to-json: empty array, indented</description>
+      <keywords>json-array simple-content json-indented fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t007"/>
       </test>
       <result>
-         <assert>translate(/t007, ' &#xa;&#x9;&#xd;', '') = '[]'</assert>
+         <assert>translate(/t007, ' 
+	&#xD;', '') = '[]'</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B008">
       <description>Test of xml-to-json: singleton array, indented</description>
+      <keywords>json-indented simple-content json-array fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t008"/>
       </test>
       <result>
-         <assert>translate(/t008, ' &#xa;&#x9;&#xd;', '') = '[34]'</assert>
+         <assert>translate(/t008, ' 
+	&#xD;', '') = '[34]'</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B009">
       <description>Test of xml-to-json: two-member array, indented</description>
+      <keywords>simple-content json-array json-boolean json-indented fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t009"/>
       </test>
       <result>
-         <assert>translate(/t009, ' &#xa;&#x9;&#xd;', '') = '[true,false]'</assert>
+         <assert>translate(/t009, ' 
+	&#xD;', '') = '[true,false]'</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B010">
       <description>Test of xml-to-json: 5-member array, indented</description>
+      <keywords>json-array json-string json-indented fn:xml-to-json fn:json-to-xml simple-content</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t010"/>
       </test>
       <result>
-         <assert>translate(/t010, ' &#xa;&#x9;&#xd;', '') = '["A","B","C","D","E"]'</assert>
+         <assert>translate(/t010, ' 
+	&#xD;', '') = '["A","B","C","D","E"]'</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B011">
       <description>Test of xml-to-json: empty map, indented</description>
+      <keywords>json-map json-indented fn:xml-to-json fn:json-to-xml simple-content</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t011"/>
       </test>
       <result>
-         <assert>translate(/t011, ' &#xa;&#x9;&#xd;', '') = '{}'</assert>
+         <assert>translate(/t011, ' 
+	&#xD;', '') = '{}'</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B012">
       <description>Test of xml-to-json: single-entry map, indented</description>
+      <keywords>json-map json-indented simple-content fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t012"/>
       </test>
       <result>
-         <assert>translate(/t012, ' &#xa;&#x9;&#xd;', '') = '{"A":true}'</assert>
+         <assert>translate(/t012, ' 
+	&#xD;', '') = '{"A":true}'</assert>
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B013">
       <description>Test of xml-to-json: five-entry map, indented</description>
+      <keywords>simple-content json-indented json-map fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t013"/>
       </test>
       <result>
-         <assert>translate(/t013, ' &#xa;&#x9;&#xd;', '') = '{"A":1,"B":2,"C":3,"D":4,"E":5}'</assert>
+         <assert>translate(/t013, ' 
+	&#xD;', '') = '{"A":1,"B":2,"C":3,"D":4,"E":5}'</assert>
          <!-- Note: order not guaranteed! -->
       </result>
    </test-case>
    
    <test-case name="xml-to-json-B014">
       <description>Test of xml-to-json: complex map, indented</description>
+      <keywords>json-map json-indented complex-content fn:xml-to-json fn:json-to-xml</keywords>
       <created by="Michael Kay" on="2014-07-19"/>
       <environment ref="xml-to-json-B"/>
       <test>
          <initial-template name="t014"/>
       </test>
       <result>
-         <assert>translate(/t014, ' &#xa;&#x9;&#xd;', '') = '{"A":[1,2],"B":[true,false],"C":["Paris","London","Berlin"],"D":[1,true,"on"],"E":[null,null]}'</assert>
+         <assert>translate(/t014, ' 
+	&#xD;', '') = '{"A":[1,2],"B":[true,false],"C":["Paris","London","Berlin"],"D":[1,true,"on"],"E":[null,null]}'</assert>
          <!-- Note: order not guaranteed! -->
       </result>
    </test-case>