Hello,
Some other bugs:
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()
6. Aggregations
with nil=’true’. By now they throw exceptions.
TypePromoter
needed changes to take empty sequences as possible arguments.
Since count was
not changed and avg=sum div count - fix takes empty nodes to
average:
http://www.w3.org/TR/xquery-operators/#func-avg
Please also note
that $zero (second argument) in function needed to be used in
empty nodes:
http://www.w3.org/TR/xquery-operators/#func-sum
Tests:
TestBugs:testNumberAggregationWithNill()
Tests are
accumulative but I think it’s not a problem since they are
single methods in on class.
Regards,
Wojciech Diakowski
and Łukasz Wycisk
_______________________________________________
wtp-wst-dev mailing list
wtp-wst-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev