Skip to content

Commit

Permalink
Parsing Functions: Empty input. qt4cg/qtspecs#1193
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianGruen committed Sep 19, 2024
1 parent 5038b60 commit 466f397
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
7 changes: 4 additions & 3 deletions fn/parse-QName.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,15 @@
</result>
</test-case>

<test-case name="parse-qname-011">
<description>4.0: empty sequence not allowed</description>
<test-case name="parse-qname-011" covers-40="PR1231">
<description>4.0: empty sequence</description>
<created by="Michael Kay" on="2022-10-13"/>
<modified by="Michael Kay" on="2022-10-27" change="renamed function"/>
<modified by="Christian Gruen" on="2024-09-19" change="PR1231"/>
<dependency type="spec" value="XP40+ XQ40+"/>
<test>fn:parse-QName(())</test>
<result>
<error code="XPTY0004"/>
<assert-empty/>
</result>
</test-case>

Expand Down
12 changes: 11 additions & 1 deletion fn/parse-integer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
</result>
</test-case>

<test-case name="parse-integer-empty">
<test-case name="parse-integer-empty1">
<description>Optional argument: empty sequence</description>
<created by="Christian Gruen" on="2024-01-16"/>
<dependency type="spec" value="XP40+ XQ40+"/>
Expand All @@ -285,5 +285,15 @@
<assert-eq>111</assert-eq>
</result>
</test-case>

<test-case name="parse-integer-empty2" covers-40="PR1231">
<description>Optional argument: empty sequence</description>
<created by="Christian Gruen" on="2024-01-16"/>
<dependency type="spec" value="XP40+ XQ40+"/>
<test>parse-integer((), 4)</test>
<result>
<assert-empty/>
</result>
</test-case>

</test-set>
10 changes: 10 additions & 0 deletions fn/parse-uri.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1245,4 +1245,14 @@ map {
</result>
</test-case>

<test-case name="fn-parse-uri-empty1">
<description>Optional argument: empty sequence</description>
<created by="Christian Gruen" on="2024-01-16"/>
<dependency type="spec" value="XP40+ XQ40+"/>
<test>parse-uri(())</test>
<result>
<assert-empty/>
</result>
</test-case>

</test-set>

0 comments on commit 466f397

Please sign in to comment.