mirror of
https://github.com/pantor/inja.git
synced 2026-03-23 01:12:44 +00:00
add test for short circuit evaluation
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user