- From: <bugzilla@jessica.w3.org>
- Date: Tue, 30 Oct 2012 16:06:08 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19782 Priority: P2 Bug ID: 19782 Assignee: oneil@saxonica.com Summary: Math test cases using 'assert-eq' QA Contact: public-qt-comments@w3.org Severity: normal Classification: Unclassified OS: Linux Reporter: spungi@gmail.com Hardware: PC Status: NEW Version: Working drafts Component: XQuery 3 & XPath 3 Test Suite Product: XPath / XQuery / XSLT All test sets under 'math' folder have test cases where only 'assert-eq' is used for checking the result. Please correct the tests such that reasonable differences to be allowed. Possible fixes: - replace the 'assert-eq' with 'assert' - replace the 'assert-eq' with a combination of 'assert-any-of', 'assert-eq' and 'assert' Here are 2 example of test cases that are wrong: 1) Test set 'math-acos', test case 'math-acos-002': <test-case name="math-acos-002"> <description>Evaluate the function math:acos() with the argument 0</description> <created by="O'Neil Delpratt, Saxonica" on="2010-12-10"/> <environment ref="math"/> <test>math:acos(0)</test> <result> <assert-eq>1.5707963267948966e0</assert-eq> </result> </test-case> Possible fix: <test-case name="math-acos-002"> [...] <result> <assert>$result gt xs:double (1.57079632679489)</assert> </result> </test-case> 2) Test set 'math-exp', test case 'math-exp-008': <test-case name="math-exp-008"> <description>Evaluate the function exp() with the argument set to xs:double('INF')</description> <created by="O'Neil Delpratt, Saxonica" on="2010-12-10"/> <environment ref="math"/> <test>math:exp(xs:double('INF'))</test> <result> <assert-eq>xs:double('INF')</assert-eq> </result> </test-case> Possible fix: <test-case name="math-acos-002"> [...] <result> <assert>$result eq xs:double('INF')</assert> </result> </test-case> -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Tuesday, 30 October 2012 16:06:13 UTC