diff options
author | Arne Juul <arnej@yahooinc.com> | 2023-03-20 10:51:03 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2023-03-20 12:22:52 +0000 |
commit | 5791e60dfcd5f83d0e77e45498318eeb3dd33ee3 (patch) | |
tree | 072eda676b406756ddf487e5cf6162d2b7e1c281 /config-model/src/test/java/com/yahoo/schema/derived | |
parent | ad2e68e457aa87c508a7e057cc178f1fe6af35d1 (diff) |
add unit test
Diffstat (limited to 'config-model/src/test/java/com/yahoo/schema/derived')
-rw-r--r-- | config-model/src/test/java/com/yahoo/schema/derived/SmallConstantsTestCase.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/config-model/src/test/java/com/yahoo/schema/derived/SmallConstantsTestCase.java b/config-model/src/test/java/com/yahoo/schema/derived/SmallConstantsTestCase.java new file mode 100644 index 00000000000..09352eb59fa --- /dev/null +++ b/config-model/src/test/java/com/yahoo/schema/derived/SmallConstantsTestCase.java @@ -0,0 +1,27 @@ +// 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.jupiter.api.Test; +import java.io.IOException; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +/** + * Tests constants in rank-profile + * + * @author arnej + */ +public class SmallConstantsTestCase extends AbstractExportingTestCase { + + @Test + void testScalarInRankProfile() throws IOException, ParseException { + assertCorrectDeriving("scalar_constant"); + } + + @Test + void testVectorInRankProfile() throws IOException, ParseException { + assertCorrectDeriving("vector_constant"); + } + +} |