adding a simple test to make sure parsing 'sore desc' does not barf

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@592746 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-11-07 13:39:35 +00:00
parent 570e22e7af
commit d9ee7b24d3
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ public class StandardRequestHandlerTest extends AbstractSolrTestCase {
,"//result/doc[3]/int[@name='id'][.='10']"
);
// Make sure score parsing works
args.put( CommonParams.SORT, "score desc" );
assertQ("with sort param [desc]", req,"//*[@numFound='3']" );
// Using legacy ';' param
args.remove( CommonParams.SORT );
args.put( CommonParams.Q, "title:test; val_s desc" );