This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9090 - missing expected result files
Summary: missing expected result files
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-19 19:35 UTC by Andrew Eisenberg
Modified: 2010-03-29 16:03 UTC (History)
2 users (show)

See Also:


Attachments

Description Andrew Eisenberg 2010-02-19 19:35:38 UTC
The following expected result files are missing:

TestSuiteStagingArea/ExpectedTestResults/ErrorsAndOptimization/errors-and-optimization-1.txt

TestSuiteStagingArea/ExpectedTestResults/ErrorsAndOptimization/errors-and-optimization-3.txt

Please note that our expected result files and our queries are in a different directory trees.
Comment 1 Jonathan Robie 2010-02-19 20:45:36 UTC
I have moved the files to that directory and checked them in.
Comment 2 Andrew Eisenberg 2010-02-23 16:28:55 UTC
I'm still not seeing these files.
Comment 3 Oliver Hallam 2010-03-17 15:53:25 UTC
errors-and-optimization-1.txt has been checked in, but errors-and-optimization-3.txt still seems to be missing
Comment 4 Andrew Eisenberg 2010-03-26 15:30:56 UTC
I now see errors-and-optimization-3.txt, which contains "false", but this is not the correct result for the query:

let $N :=  <n x="this ain't no date"/>
return $N[if (@x castable as xs:date)
   then xs:date(@x) gt xs:date("2000-01-01")
   else false()]
Comment 5 Jonathan Robie 2010-03-26 17:03:31 UTC
I changed the results file to an empty file (is that the right way to represent an empty sequence in the results?)
Comment 6 Michael Kay 2010-03-26 17:50:10 UTC
If the expected result is an empty sequence, it's generally clearer to wrap a call of count() around it and publish an expected result of "0".
Comment 7 Andrew Eisenberg 2010-03-29 16:03:21 UTC
I see that you've followed Mike's suggestion in Comment #6.

I've removed the trailing CR from your result file.

This test case now passes for me.