summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2020-06-18 09:10:48 +0200
committerGitHub <noreply@github.com>2020-06-18 09:10:48 +0200
commitc95cd618e0903ce0e5101ecb3593821bb399a9f9 (patch)
tree667aadb9fc67ab9d8f220ef298ccc82186c13ac2 /document
parentb0bc165e64dbcbb9e8e357f92f46f8bf1c84dbb8 (diff)
parented30906d441364b95b99f52355d218a085246fa6 (diff)
Merge pull request #13619 from vespa-engine/bratseth/spare-capacity-maintainer
Bratseth/spare capacity maintainer
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 9640f2883fb..d1f02ae45e2 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));
@@ -89,6 +90,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");