<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>4215</bug_id>
          
          <creation_ts>2007-01-13 22:20:47 +0000</creation_ts>
          <short_desc>wrong expected output for K2-Literals-8, K2-Literals-9</short_desc>
          <delta_ts>2007-01-22 05:15:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Per Bothner">per</reporter>
          <assigned_to name="Frans Englich">frans.englich</assigned_to>
          <cc>martin</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13521</commentid>
    <comment_count>0</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2007-01-13 22:20:47 +0000</bug_when>
    <thetext>The tests K2-Literals-8 K2-Literals-9 test for Really Large floating-point literals.  The can optionally fail with FOAR0002.  Alternatively, they can evaluate to K2-Literals-8.txt or K2-Literals-9.txt.  Both of which contain the incorrect value &quot;true&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13523</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-14 16:35:50 +0000</bug_when>
    <thetext>Sorry if I&apos;ve lost the thread, but where do I look to find tests named K2-Literals-8 or K2-Literals-9?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13526</commentid>
    <comment_count>2</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2007-01-14 20:31:58 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Sorry if I&apos;ve lost the thread, but where do I look to find tests named
&gt; K2-Literals-8 or K2-Literals-9?

It&apos;s a test that Frans Englich added recently to CVS:
Queries/XQuery/Expressions/PrimaryExpr/Literals/K2-Literals-8.xq
It&apos;s in PublicPagesStagingArea/XQTS_current.zip, and also
AdditionalFiles/submission-frans2.zip.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13539</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-15 11:22:01 +0000</bug_when>
    <thetext>Thanks. I updated my CVS copy of the test suite but forgot to unzip the XQTS_current.zip file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13551</commentid>
    <comment_count>4</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2007-01-15 16:46:06 +0000</bug_when>
    <thetext>An attempted fix has been committed to CVS, and should be part of
XQTS_current.zip. Feel free to verify that the fix is acceptable, and if so,
change status to CLOSED. If the attempted fix is not acceptable, reopen this
report.

If no opinion about this resolution is expressed within two weeks, it will be
closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13570</commentid>
    <comment_count>5</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2007-01-16 00:59:00 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; An attempted fix has been committed to CVS, and should be part of
&gt; XQTS_current.zip. Feel free to verify that the fix is acceptable, and if so,
&gt; change status to CLOSED. If the attempted fix is not acceptable, reopen this
&gt; report.

It doesn&apos;t like you did the upload right. K2-Literals-8.txt (and other files) are missing from PublicPagesStagingArea/XQTS_current.zip:
$ zipinfo PublicPagesStagingArea/XQTS_current.zip|grep K2-Literals-8
-rw-r--r--  2.0 unx      486 b- defN 15-Jan-07 15:15 Queries/XQuery/Expressions/PrimaryExpr/Literals/K2-Literals-8.xq
- but no K2-Literals-8.txt.

However, K2-Literals-8.txt is referenced in the XQTSCatalog.xml I extracted from that same .zip.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13571</commentid>
    <comment_count>6</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2007-01-16 01:23:21 +0000</bug_when>
    <thetext>I guess I should list the missing files:
ExpectedTestResults/Expressions/PrimaryExpr/Literals/K2-Literals-8.txt
ExpectedTestResults/Expressions/PrimaryExpr/Literals/K2-Literals-9.txt
ExpectedTestResults/seqExprTypes/PrologExpr/BaseURIProlog/K2-BaseURIProlog-5.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13574</commentid>
    <comment_count>7</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2007-01-16 09:18:52 +0000</bug_when>
    <thetext>Here&apos;s the catalog entry for K2-Literals-8:

           &lt;ts:test-case Creator=&quot;Frans Englich&quot; is-XPath2=&quot;false&quot; name=&quot;K2-Literals-8&quot;
FilePath=&quot;Expressions/PrimaryExpr/Literals/&quot; scenario=&quot;standard&quot;&gt;
&lt;ts:description&gt;Use a relatively large xs:double literal.&lt;/ts:description&gt;
&lt;ts:query name=&quot;K2-Literals-8&quot; date=&quot;2007-01-15+01:00&quot;/&gt;
&lt;ts:input-file role=&quot;principal-data&quot; variable=&quot;input-context&quot;&gt;emptydoc&lt;/ts:input-file&gt;
&lt;ts:output-file role=&quot;principal&quot; compare=&quot;Ignore&quot;&gt;K2-Literals-8.txt&lt;/ts:output-file&gt;
&lt;ts:expected-error&gt;FOAR0002&lt;/ts:expected-error&gt;
&lt;/ts:test-case&gt;

So the output baselines are as follows:

* An expected error, FOAR0002
* An ignore baseline. That is, any output is valid. The guidelines reads: &quot;Ignore: no comparison needs to be applied; the result is always true if the implementation successfully executes the test case.&quot;

So, it makes little sense to open a file for which nothing shall be done for. I agree that that K2-Literals-8.txt is mentioned is confusing, and that it is less confusing with an absent filename. I&apos;ll get rid of the dummy name in a future commit.

I believe the same reasoning could be applied to the initial comment in this report. For example, K2-Literals-8.txt existed and had the content &quot;true&quot;, but was referenced from the catalog as Ignore, and the content shouldn&apos;t matter(although it surely isn&apos;t pretty to throw files around like that).

Is my analysis correct or am I missing something?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13576</commentid>
    <comment_count>8</comment_count>
    <who name="Martin Probst">martin</who>
    <bug_when>2007-01-16 10:49:53 +0000</bug_when>
    <thetext>Well, it broke my XQTS-to-our-test-format transformation script as I didn&apos;t have explicit code testing on the &apos;ignore&apos; value for the transformation itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13688</commentid>
    <comment_count>9</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2007-01-18 15:25:45 +0000</bug_when>
    <thetext>As I see it, it didn&apos;t break any driver. The &apos;Ignore&apos; comparison have been in the catalog for ages. However, I believe there was a period where no tests made use of it, which could explain why we&apos;re seeing this discrepancy in the driver.

I&apos;m closing this as FIXED, because it to me seems that the tests have been fixed. If this resolution is acceptable, feel free to change status to CLOSED. Otherwise, reopen this report. I will auto-close this report after two weeks, if a reply is absent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13692</commentid>
    <comment_count>10</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2007-01-18 19:04:16 +0000</bug_when>
    <thetext>I don&apos;t object to closing this bug.  Will/have you change the content of the respective &lt;output-file&gt; elements to empty?  I think that would be cleaner.
It would also be nice to clarify this issue in the testsuite documentation.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13715</commentid>
    <comment_count>11</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2007-01-20 10:14:20 +0000</bug_when>
    <thetext>Yes, the content of output-file elements are(or will be, if it&apos;s still in my local changes) empty, to avoid confusion. I surely agree it is cleaner.

The guidelines says in Comparing Results: &quot;Ignore: no comparison needs to be applied; the result is always true if the implementation successfully executes the test case.&quot; If you ask me, that sentence is quite good at explaining what the Ignore comparison means.

What changes more specifically do you think would make it better?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13743</commentid>
    <comment_count>12</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2007-01-22 05:15:54 +0000</bug_when>
    <thetext>It&apos;s ok as it is, but it might be a little better with something like:
&quot;In this case there is no &quot;expected file&quot;, and the contents of the output-file element should be empty.&quot;
But it&apos;s no big deal.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>