diff options
author | Jon Bratseth <bratseth@oath.com> | 2020-06-18 09:10:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-18 09:10:48 +0200 |
commit | c95cd618e0903ce0e5101ecb3593821bb399a9f9 (patch) | |
tree | 667aadb9fc67ab9d8f220ef298ccc82186c13ac2 /document | |
parent | b0bc165e64dbcbb9e8e357f92f46f8bf1c84dbb8 (diff) | |
parent | ed30906d441364b95b99f52355d218a085246fa6 (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.java | 2 |
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"); |