Skip to content

Apache Lucene open-source search software

SOLR-2371: adds min function, makes max take two value sources

Grant Ingersoll68f9ccffe79b
diff --git a/solr/src/test/org/apache/solr/search/function/TestFunctionQuery.java b/solr/src/test/org/apache/solr/search/function/TestFunctionQuery.java
index ceba5e6b109..edb36a2833a 100755
--- a/solr/src/test/org/apache/solr/search/function/TestFunctionQuery.java
+++ b/solr/src/test/org/apache/solr/search/function/TestFunctionQuery.java
@@ -498,6 +498,8 @@ public class TestFunctionQuery extends SolrTestCaseJ4 {
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));