- From: <bugzilla@jessica.w3.org>
- Date: Mon, 16 Mar 2015 17:30:41 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28229
Bug ID: 28229
Summary: [QT3TS] misc-RandomNumberGenerator rnd-001
Product: XPath / XQuery / XSLT
Version: Working drafts
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: XQuery 3 & XPath 3 Test Suite
Assignee: oneil@saxonica.com
Reporter: debbie@saxonica.com
QA Contact: public-qt-comments@w3.org
Firstly, this test could be moved to the fn-random-number-generator test set.
Secondly, the return statement of the test says:
return if (not(count(distinct-values($r)) > 0.5*count($r)))
then fn:error(fn:random-number-generator, '')
else if (not(not(deep-equal($r, fn:sort($r)))))
then fn:error(fn:random-number-generator, '')
else if (not(count($r[. lt 0.5]) > 0.2*count($r) and count($r[. gt
0.5]) > 0.2*count($r)))
then fn:error(fn:random-number-generator, '')
else fn:true()
But the arguments to fn:error() do not make sense. I'm not quite sure what the
intention was. Should the test even be throwing errors if the spec says (last
paragraph of 4.9.1. Notes):
"The specification does not place strong conformance requirements on the actual
randomness of the result..."
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 16 March 2015 17:30:44 UTC