W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2012

[Bug 19782] test cases using 'assert-eq' for numeric values instead of 'assert'

From: <bugzilla@jessica.w3.org>
Date: Wed, 31 Oct 2012 00:09:52 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-19782-523-CVS2IO1gDm@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19782

--- Comment #4 from Sorin Nasoi <spungi@gmail.com> ---
<test-case name="fn-abs-1">
 <description>numeric types. Author: Oliver Hallam Date:
2010-03-15</description>
 <created by="Oliver Hallam" on="2010-03-15"/>
 <environment ref="empty"/>
 <test>string-join(for $x in (1, xs:decimal(2), xs:float(3), xs:double(4))
return 
           if ((abs($x)) instance of xs:integer) then "integer" 
           else if ((abs($x)) instance of xs:decimal) then "decimal" 
           else if ((abs($x)) instance of xs:float) then "float"
           else if ((abs($x)) instance of xs:double) then "double" else
error(), " ")</test>
 <result>
  <assert-eq>"integer decimal float double"</assert-eq>
 </result>
</test-case>

instead of:
<test-case name="fn-abs-1">
[...]
 <result>
  <assert>$result eq "integer decimal float double"</assert>
 </result>
</test-case>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 31 October 2012 00:09:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 31 October 2012 00:09:53 GMT