Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361059

Summary: FnRoundHalfToEven in case of 2 arguments
Product: [WebTools] WTP Source Editing Reporter: Lukasz Wycisk <lukasz>
Component: wst.xpathAssignee: Jesper Moller <jesper>
Status: RESOLVED FIXED QA Contact: Jesper Moller <jesper>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.4 M6   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
patch
none
testcases none

Description Lukasz Wycisk CLA 2011-10-15 10:34:04 EDT
Created attachment 205259 [details]
patch

5. FnRoundHalfToEven in case of 2 arguments

http://www.w3.org/TR/xquery-operators/#func-round-half-to-even

Function requires ‘number?’ what means that either empty sequence and node should be considered as correct arguments. It required to use already corrected function (bug 1) to atomize argument – FnRoundHalfToEven:93-97. Tests:

TestBugs:testNumericFunctionOnEmptySequence() and TestBugs:testFunctionAtomization2()
Comment 1 Lukasz Wycisk CLA 2011-10-15 10:34:43 EDT
Created attachment 205260 [details]
testcases
Comment 2 Jesper Moller CLA 2011-10-30 20:04:53 EDT
Patch looks good ... Reviewing and testing against HEAD and maintenance branches!
Comment 3 Jesper Moller CLA 2012-04-25 20:32:06 EDT
Committed, thank you, Lukasz