code cleaning

This commit is contained in:
pantor
2017-08-18 15:38:32 +02:00
parent 134466d0b6
commit c06da24f4d
11 changed files with 315 additions and 368 deletions

View File

@@ -3,12 +3,11 @@
#include "inja.hpp"
using Environment = inja::Environment;
using json = nlohmann::json;
TEST_CASE("Files handling") {
Environment env = Environment();
inja::Environment env = inja::Environment();
json data;
data["name"] = "Jeff";
@@ -26,7 +25,7 @@ TEST_CASE("Files handling") {
}
TEST_CASE("Complete files") {
Environment env = Environment("../test/data/");
inja::Environment env = inja::Environment("../test/data/");
for (std::string test_name : {"simple-file", "nested", "nested-line"}) {
SECTION(test_name) {