osx const error fix
This commit is contained in:
parent
b94f538793
commit
9c6bba3dfd
@ -27,13 +27,15 @@ using namespace mstchtest;
|
||||
if (test.count("partials")) \
|
||||
for (auto& partial_item: get<mstch::map>(test["partials"])) \
|
||||
partials.insert(std::make_pair(partial_item.first, get<std::string>(partial_item.second))); \
|
||||
for(std::pair<const std::string,mstch::node>& data_item: get<mstch::map>(test["data"])) \
|
||||
mstch::map data; \
|
||||
for (auto& data_item: get<mstch::map>(test["data"])) \
|
||||
if (data_item.first == "lambda") \
|
||||
data_item.second = specs_lambdas[get<std::string>(test["name"])]; \
|
||||
data.insert(std::make_pair("lambda", specs_lambdas[get<std::string>(test["name"])])); \
|
||||
else \
|
||||
data.insert(data_item); \
|
||||
SECTION(get<std::string>(test["name"])) \
|
||||
REQUIRE(mstch::render( \
|
||||
get<std::string>(test["template"]), \
|
||||
test["data"], partials) == \
|
||||
REQUIRE( \
|
||||
mstch::render(get<std::string>(test["template"]), data, partials) == \
|
||||
get<std::string>(test["expected"])); \
|
||||
} \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user