diff options
author | Haavard <havardpe@yahoo-inc.com> | 2017-02-24 12:49:34 +0000 |
---|---|---|
committer | Haavard <havardpe@yahoo-inc.com> | 2017-02-24 12:49:34 +0000 |
commit | 93110996e8384cb4e191084583c7c068fd91a566 (patch) | |
tree | 40cb80e4dfdb6520e235b1d9396b0d805d14af11 /searchlib/src/tests/fef/properties | |
parent | d16bd3f25eed06dc7449f5f2b7809ee97280e4ad (diff) |
add flag to enable lazy expressions
Diffstat (limited to 'searchlib/src/tests/fef/properties')
-rw-r--r-- | searchlib/src/tests/fef/properties/properties_test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/searchlib/src/tests/fef/properties/properties_test.cpp b/searchlib/src/tests/fef/properties/properties_test.cpp index 7ca79599d5c..7f5594ea821 100644 --- a/searchlib/src/tests/fef/properties/properties_test.cpp +++ b/searchlib/src/tests/fef/properties/properties_test.cpp @@ -215,6 +215,14 @@ TEST("test stuff") { } { // test index properties known by the framework + { // vespa.eval.lazy_expressions + EXPECT_EQUAL(eval::LazyExpressions::NAME, vespalib::string("vespa.eval.lazy_expressions")); + EXPECT_EQUAL(eval::LazyExpressions::DEFAULT_VALUE, vespalib::string("false")); + Properties p; + EXPECT_TRUE(!eval::LazyExpressions::check(p)); + p.add("vespa.eval.lazy_expressions", "true"); + EXPECT_TRUE(eval::LazyExpressions::check(p)); + } { // vespa.rank.firstphase EXPECT_EQUAL(rank::FirstPhase::NAME, vespalib::string("vespa.rank.firstphase")); EXPECT_EQUAL(rank::FirstPhase::DEFAULT_VALUE, vespalib::string("nativeRank")); |