Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361059 - FnRoundHalfToEven in case of 2 arguments
Summary: FnRoundHalfToEven in case of 2 arguments
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xpath (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Jesper Moller CLA
QA Contact: Jesper Moller CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-15 10:34 EDT by Lukasz Wycisk CLA
Modified: 2012-04-25 20:32 EDT (History)
0 users

See Also:


Attachments
patch (1.09 KB, text/plain)
2011-10-15 10:34 EDT, Lukasz Wycisk CLA
no flags Details
testcases (7.66 KB, text/plain)
2011-10-15 10:34 EDT, Lukasz Wycisk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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