add test for short circuit evaluation

This commit is contained in:
pantor
2021-05-17 20:03:17 +02:00
parent 389c1d64f0
commit ca3c7a0cd6
2 changed files with 7 additions and 1 deletions

View File

@@ -157,7 +157,7 @@ TEST_CASE("functions") {
CHECK(env.render("{{ exists(\"zipcode\") }}", data) == "false");
CHECK(env.render("{{ exists(name) }}", data) == "false");
CHECK(env.render("{{ exists(property) }}", data) == "true");
// CHECK(env.render("{{ exists(\"keywords\") and length(keywords) > 0 }}", data) == "false");
}