dont copy strings into textnodes

This commit is contained in:
pantor
2020-07-26 13:13:05 +02:00
parent 59b446b215
commit 7529f21e63
4 changed files with 15 additions and 9 deletions

View File

@@ -74,6 +74,7 @@ TEST_CASE("functions") {
SUBCASE("at") {
CHECK(env.render("{{ at(names, 0) }}", data) == "Jeff");
CHECK(env.render("{{ at(names, i) }}", data) == "Seb");
// CHECK(env.render("{{ at(names, 45) }}", data) == "Jeff");
}
SUBCASE("first") {