assertHits(new FunctionQuery(new MaxDocValueSource()),
new float[] { 2f, 2f });
}
public void testMaxFloat() throws Exception {
assertHits(new FunctionQuery(new MaxFloatFunction(new ValueSource[] {
new ConstValueSource(1f), new ConstValueSource(2f)})),
new float[] { 2f, 2f });
}