kszbcss / xspec

Private backup of the xspec project at google code, as google code is going to disappear.
MIT License
1 stars 0 forks source link

can't get any xquery tests to pass #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Every xquery test I try to run returns as a failure.  XSpec is running the 
functions correctly and returning the correct result, but any comparison 
seems to fail and produce a <x:test successful="false" />.

I've attached:
- test-function.xql which contains three simple functions
- tests.xql which is the XSpec-generated xquery
- result.xml, the XSpec test result document

I'm using saxon 9.1 to run the tests.  

Original issue reported on code.google.com by jsulak@gmail.com on 11 Mar 2010 at 2:07

Attachments:

GoogleCodeExporter commented 9 years ago
Ouch!  Can you provide the test suite itself?  Thanks for the bug report!

Original comment by fgeorges on 11 Mar 2010 at 3:52

GoogleCodeExporter commented 9 years ago
Crap.  Sorry for leaving that out.  Here it is.

Original comment by jsulak@gmail.com on 11 Mar 2010 at 3:54

Attachments:

GoogleCodeExporter commented 9 years ago
Yes, there was a bug related to the use of @select.  I fixed it.  So using 
@select, x:expect 
content or @test work now.  But I think that will not work with the case @test 
and either 
@select or content (this case is different, it must sub-select within the 
result and 
compare to the expected value).

I suggest this is not a blocker for 0.2, but we will have to fix it for 0.3.

Original comment by fgeorges on 11 Mar 2010 at 4:43

GoogleCodeExporter commented 9 years ago
r152 fixes all the issues I was having, but I haven't tried any specs matching 
the 
caveats you gave above.  

Original comment by jsulak@gmail.com on 11 Mar 2010 at 8:23

GoogleCodeExporter commented 9 years ago

Original comment by fgeorges on 15 Sep 2010 at 2:03

GoogleCodeExporter commented 9 years ago
I just tested again this case with Saxon, eXist and MarkLogic, and it run fine. 
 John, can you please close this issue if everything's fine with you?

Original comment by fgeorges on 26 Aug 2011 at 3:13