You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by gs...@apache.org on 2011/02/17 16:44:42 UTC

svn commit: r1071654 - /lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/TestFunctionQuery.java

Author: gsingers
Date: Thu Feb 17 15:44:42 2011
New Revision: 1071654

URL: http://svn.apache.org/viewvc?rev=1071654&view=rev
Log:
SOLR-2371: adds min function, makes max take two value sources

Modified:
    lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/TestFunctionQuery.java

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/TestFunctionQuery.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/TestFunctionQuery.java?rev=1071654&r1=1071653&r2=1071654&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/TestFunctionQuery.java (original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/TestFunctionQuery.java Thu Feb 17 15:44:42 2011
@@ -498,6 +498,8 @@ public class TestFunctionQuery extends S
     dofunc("deg(.5)", Math.toDegrees(.5));
     dofunc("sqrt(9)", Math.sqrt(9));
     dofunc("cbrt(8)", Math.cbrt(8));
+    dofunc("max(0,1)", Math.max(0,1));
+    dofunc("min(0,1)", Math.min(0,1));
     dofunc("log(100)", Math.log10(100));
     dofunc("ln(3)", Math.log(3));
     dofunc("exp(1)", Math.exp(1));