summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
Diffstat (limited to 'document')
-rw-r--r--document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java b/document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java
index 2e08814bf43..5e61f8c7ba0 100644
--- a/document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java
+++ b/document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java
@@ -42,6 +42,7 @@ public class DocumentSelectorTestCase {
type.addField("hfloat", DataType.FLOAT);
type.addField("hstring", DataType.STRING);
type.addField("content", DataType.STRING);
+ type.addField("truth", DataType.BOOL);
StructDataType mystruct = new StructDataType("mystruct");
mystruct.addField(new Field("key", DataType.INT));
@@ -87,6 +88,7 @@ public class DocumentSelectorTestCase {
assertParse("music_.artist = \"*\"");
assertParse("music_foo.artist = \"*\"");
assertParse("music_foo_.artist = \"*\"");
+ assertParse("truth");
assertParse("(4 + 3) > 0", "(4+3) > 0");
assertParse("1 + 1 > 0", "1 +1 > 0");
assertParse("1 + -1 > 0", "1 + -1 > 0");