diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-11-15 12:51:46 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-11-15 12:51:46 +0100 |
commit | c6846d9c3a35145467c3276f35742e562d584b36 (patch) | |
tree | 8e1425fae4c5372bf2c3d122d7ef9c652dd00686 /deps/inja/test/test-units.cpp | |
parent | c2ef613b99d01e742127d894756e49f42b1f264d (diff) | |
parent | 662f5a771f3807bf7ebd5a3989230d5d0a26659d (diff) |
Merge commit '662f5a771f3807bf7ebd5a3989230d5d0a26659d'
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'deps/inja/test/test-units.cpp')
-rw-r--r-- | deps/inja/test/test-units.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/inja/test/test-units.cpp b/deps/inja/test/test-units.cpp index 95862f2..bbef190 100644 --- a/deps/inja/test/test-units.cpp +++ b/deps/inja/test/test-units.cpp @@ -27,7 +27,7 @@ Try this TEST_CASE("copy environment") { inja::Environment env; - env.add_callback("double", 1, [](inja::Arguments &args) { + env.add_callback("double", 1, [](inja::Arguments& args) { int number = args.at(0)->get<int>(); return 2 * number; }); @@ -36,16 +36,16 @@ TEST_CASE("copy environment") { env.include_template("tpl", t1); std::string test_tpl = "{% include \"tpl\" %}"; - REQUIRE(env.render(test_tpl, json()) == "4"); + REQUIRE(env.render(test_tpl, inja::json()) == "4"); inja::Environment copy(env); - CHECK(copy.render(test_tpl, json()) == "4"); + CHECK(copy.render(test_tpl, inja::json()) == "4"); // overwrite template in source env inja::Template t2 = env.parse("{{ double(4) }}"); env.include_template("tpl", t2); - REQUIRE(env.render(test_tpl, json()) == "8"); + REQUIRE(env.render(test_tpl, inja::json()) == "8"); // template is unchanged in copy - CHECK(copy.render(test_tpl, json()) == "4"); + CHECK(copy.render(test_tpl, inja::json()) == "4"); } |