|
|
@ -58,6 +58,12 @@ public class NestedFunctionTest extends BaseFunctionTest { |
|
|
|
verifyMathFunction(conf, "$.sum(5, 3, $.numbers.max(), 2)", 20.0); |
|
|
|
verifyMathFunction(conf, "$.sum(5, 3, $.numbers.max(), 2)", 20.0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
public void testSimpleLiteralArgument() { |
|
|
|
|
|
|
|
verifyMathFunction(conf, "$.sum(5)", 5.0); |
|
|
|
|
|
|
|
verifyMathFunction(conf, "$.sum(50)", 50.0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void testStringConcat() { |
|
|
|
public void testStringConcat() { |
|
|
|
verifyTextFunction(conf, "$.text.concat()", "abcdef"); |
|
|
|
verifyTextFunction(conf, "$.text.concat()", "abcdef"); |
|
|
|