diff options
author | Lester Solbakken <lesters@oath.com> | 2021-01-12 16:23:48 +0100 |
---|---|---|
committer | Lester Solbakken <lesters@oath.com> | 2021-01-12 16:23:48 +0100 |
commit | 9ed2a987c41abb4177b99b9730dc552bfee40f21 (patch) | |
tree | c0ef0139bbf3bef13874e9f923f37bea53d1cea5 /config-model/src/test/java/com/yahoo/searchdefinition/derived/ExpressionsAsArgsTestCase.java | |
parent | f4252b2f8f9f4c8e970607155d32e742f7a8536c (diff) |
Allow expressions as arguments to functions
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/derived/ExpressionsAsArgsTestCase.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/derived/ExpressionsAsArgsTestCase.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExpressionsAsArgsTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExpressionsAsArgsTestCase.java new file mode 100644 index 00000000000..9a5c30f773e --- /dev/null +++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/ExpressionsAsArgsTestCase.java @@ -0,0 +1,25 @@ +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.searchdefinition.derived; + +import com.yahoo.searchdefinition.parser.ParseException; +import org.junit.Test; + +import java.io.IOException; + +/** + * Tests correct deriving of expressions as arguments to functions. + * + * @author lesters + */ +public class ExpressionsAsArgsTestCase extends AbstractExportingTestCase { + + @Test + public void testDocumentDeriving() throws IOException, ParseException { + assertCorrectDeriving("function_arguments"); + assertCorrectDeriving("function_arguments_with_expressions"); + } + +} + + + |