[xquery-talk] Question about a QT3 test

Joe Wicentowski joewiz at gmail.com
Thu Sep 8 13:14:37 PDT 2016


Hi all,

I'm looking at the QT3 tests and trying to understand by what
mechanism this expression

  fn:collection('http://www.w3.org/2010/09/qt-fots-catalog/integers')

...  is supposed to return

   (1 to 10)

This is test case cbcl-collection-002 in
qt3/2011/QT3-test-suite/fn/collection.xml.  I've pasted the full test
case in below.

Thanks!
Joe

```
   <test-case name="cbcl-collection-002" covers="fn-collection">
      <description> test fn:collection with non-node collection.</description>
      <created by="Tim Mills" on="2016-08-19"/>
      <environment ref="integer-collection"/>
      <dependency type="spec" value="XQ31+"/>
      <test>fn:collection('http://www.w3.org/2010/09/qt-fots-catalog/integers')</test>
      <result>
         <assert-deep-eq>(1 to 10)</assert-deep-eq>
         <assert-type>xs:integer+</assert-type>
      </result>
   </test-case>
```


More information about the talk mailing list