Skip to content

Commit

Permalink
Map construction, duplicate keys. qt4cg/qtspecs#1740
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianGruen committed Jan 30, 2025
1 parent 073f614 commit 2126851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion map/put.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,14 @@
<description>map:put() with assorted keys that compare equal</description>
<created by="Michael Kay, Saxonica" on="2014-05-13"/>
<modified by="Michael Kay" on="2015-11-26" change="avoid HOF dependency in assertions"/>
<modified by="Christian Gruen" on="2025-01-30" change="Implementation-dependent key handling"/>
<environment ref="map"/>
<test>map:put(map{3 : "three"}, xs:float('3.0'), "threeF")</test>
<result>
<all-of>
<assert-count>1</assert-count>
<assert-type>map(*)</assert-type>
<assert-type>map(xs:float, xs:string)</assert-type>
<assert-type>map(xs:numeric, xs:string)</assert-type>
<assert>map:size($result) eq 1</assert>
<assert>$result?(3.0) eq "threeF"</assert>
</all-of>
Expand Down

0 comments on commit 2126851

Please sign in to comment.