summaryrefslogtreecommitdiffstats
path: root/container-search/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/test')
-rw-r--r--container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java b/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java
index 3f0000367e7..aa2f24107ae 100644
--- a/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java
+++ b/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java
@@ -681,6 +681,12 @@ public class YqlParserTestCase {
}
@Test
+ public void testSourcesWithDash() {
+ assertSources("select foo from source-a where price <= 500;",
+ Arrays.asList("source-a"));
+ }
+
+ @Test
public void testWildCardSources() {
assertSources("select foo from sources * where price <= 500;",
Collections.<String>emptyList());