You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by David Caruana <da...@alfresco.org> on 2005/09/30 14:45:38 UTC

XPathOrderByTest issue

We're having trouble passing the TCK
XPathOrderByTest.testOrderByDescending.

The method evaluateResultOrder() in AbstractQueryTest tests the first
result row against "".  For descending order, it's very unlikey that a
value will be <= "" and so we fail.  Can you verify this test is right?
Or are we missing something?

This is the last level 1 test for us to pass, so any help is
appreciated.

Regards,
David Caruana
www.alfresco.org




Re: XPathOrderByTest issue

Posted by Marcel Reutegger <ma...@gmx.net>.
Hi David,

David Caruana wrote:
> We're having trouble passing the TCK
> XPathOrderByTest.testOrderByDescending.

Now that I've seen the code I wonder how it is possible that this test 
succeeded in jackrabbit :-/
Probably we were lucky picking the right test data...

> The method evaluateResultOrder() in AbstractQueryTest tests the first
> result row against "".  For descending order, it's very unlikey that a
> value will be <= "" and so we fail.  Can you verify this test is right?
> Or are we missing something?

No, you're absolutely right, the test case is broken.

> This is the last level 1 test for us to pass, so any help is
> appreciated.

That's great to hear.
I've just committed the fix for AbstractQueryTest. svn revision: 292733

Thanks for reporting this issue.

regards
  marcel