mirror of
https://github.com/pantor/inja.git
synced 2026-08-18 21:33:18 +00:00
temp fix some unit test for mvsc
This commit is contained in:
+2
-1
@@ -410,6 +410,7 @@ public:
|
||||
return eval_expression(element.args[0], data) != eval_expression(element.args[1], data);
|
||||
}
|
||||
case Parsed::Function::ReadJson: {
|
||||
std::cout << "eval_function - read json - " << element.command << std::endl;
|
||||
if ( json::accept(element.command) ) { return json::parse(element.command); } // Json Raw Data
|
||||
|
||||
std::string input = element.command;
|
||||
@@ -550,7 +551,7 @@ public:
|
||||
MatchType<Parsed::Function> match_function = match(input, regex_map_functions);
|
||||
switch ( match_function.type() ) {
|
||||
case Parsed::Function::ReadJson: {
|
||||
std::cout << "parse read json" << std::endl;
|
||||
std::cout << "parse read json - " << match_function.str(1) << std::endl;
|
||||
Parsed::ElementExpression result = Parsed::ElementExpression(Parsed::Function::ReadJson);
|
||||
result.command = match_function.str(1);
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user