temp fix some unit test for mvsc

This commit is contained in:
pantor
2017-12-02 15:31:36 +01:00
parent d8196aea39
commit b9169d394c
+2 -1
View File
@@ -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;