tests/insn/analyze-string/_analyze-string-test-set.xml
changeset 1894 5aca602b9d58
parent 1850 2d943e2bde09
child 1926 59acff18e7c5
--- a/tests/insn/analyze-string/_analyze-string-test-set.xml	Tue Sep 11 15:08:59 2018 +0100
+++ b/tests/insn/analyze-string/_analyze-string-test-set.xml	Sun Sep 16 14:54:41 2018 +0100
@@ -1005,4 +1005,22 @@
       </result>
    </test-case>
    
+   <test-case name="analyze-string-099">
+      <description>A test for non-greedy matching</description>
+      <created by="Michael Kay after Vladimir Nestorovsky" on="2018-09-12"/>
+      <dependencies>
+         <spec value="XSLT30+"/>
+      </dependencies>
+      <test>
+         <stylesheet file="analyze-string-099.xsl"/>
+      </test>
+      <result>
+         <all-of>
+            <assert>count(/out/match) = 2</assert>
+            <assert>/out/match[1] = '"a"'</assert>
+            <assert>/out/match[2] = '"b"'</assert> 
+         </all-of>
+      </result>
+   </test-case>
+   
 </test-set>