From 96a65e43d6ef046738ad629c26d9756996095871 Mon Sep 17 00:00:00 2001 From: Daniel Sipka Date: Mon, 12 Oct 2015 10:48:11 +0200 Subject: [PATCH] osx const error fix --- test/test_main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_main.cpp b/test/test_main.cpp index 11f36ed..48d7c7a 100644 --- a/test/test_main.cpp +++ b/test/test_main.cpp @@ -20,22 +20,22 @@ using namespace mstchtest; #define SPECS_TEST(x) TEST_CASE("specs_" #x) { \ using boost::get; \ - auto data = json::parse(x ## _json); \ + mstch::node data = json::parse(x ## _json); \ for (auto& test_item: get(get(data)["tests"])) {\ auto test = get(test_item); \ std::map partials; \ if (test.count("partials")) \ for (auto& partial_item: get(test["partials"])) \ partials.insert(std::make_pair(partial_item.first, get(partial_item.second))); \ - mstch::map data; \ + mstch::map test_data; \ for (auto& data_item: get(test["data"])) \ if (data_item.first == "lambda") \ - data.insert(std::make_pair("lambda", specs_lambdas[get(test["name"])])); \ + test_data.insert(std::make_pair("lambda", specs_lambdas[get(test["name"])])); \ else \ - data.insert(data_item); \ + test_data.insert(data_item); \ SECTION(get(test["name"])) \ REQUIRE( \ - mstch::render(get(test["template"]), data, partials) == \ + mstch::render(get(test["template"]), test_data, partials) == \ get(test["expected"])); \ } \ }