This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14265 - QT3TS: K2-RoundFunc-5
Summary: QT3TS: K2-RoundFunc-5
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-23 14:00 UTC by Tim Mills
Modified: 2012-05-25 15:27 UTC (History)
3 users (show)

See Also:


Attachments

Description Tim Mills 2011-09-23 14:00:47 UTC
The environment for this test should be 'e1' and not 'e-1', or the test should expect an error since xs:positiveInteger(<e>-1</e>) will raise FORG0001.

  <test-case name="K2-RoundFunc-5">
      <description> Ensure the return type is properly inferred for positiveInteger. </description>
      <created by="Frans Englich" on="2007-11-26"/>
       <modified by="O'Neil Delpratt" on="2011-09-06" change="environment variable e0 to e-1" />
      <environment ref="e-1"/>
      <test>round(xs:positiveInteger(.)) instance of xs:positiveInteger</test>
      <result>
         <any-of>
            <assert-false/>
            <assert-true/>
         </any-of>
      </result>
   </test-case>
Comment 1 Tim Mills 2012-05-18 13:08:27 UTC
This test does not appear to have been fixed.

-1 is not a positive integer!
Comment 2 O'Neil Delpratt 2012-05-25 14:20:57 UTC
Bug fix. Environment variable changed to e1
Comment 3 Tim Mills 2012-05-25 15:27:17 UTC
Confirmed fixed.  Thanks.