aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/schema/derived/ExpressionsAsArgsTestCase.java
blob: d2020305bc1ba608236cb7c5ebd6c292a02d6873 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.schema.derived;

import com.yahoo.schema.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");
    }

}