C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html

This commit is contained in:
Arash Partow 2018-11-04 01:36:31 +11:00
parent 9836f21d07
commit b3b4cee1c5
2 changed files with 14 additions and 4 deletions

View File

@ -20624,6 +20624,7 @@ namespace exprtk
}
free_node(node_allocator_, expression);
free_node(node_allocator_, right_branch);
return error_node();
}

View File

@ -2811,7 +2811,16 @@ inline bool run_test03()
"1 v x",
"1 v y",
"x v 1",
"y v 1"
"y v 1",
"(x == 'a string' )",
"(x == 'a string'[1:2] )",
"(x == 'a string' + 'b string' )",
"(x == ('a string' + 'b string')[3:5])",
"('a string' == x )",
"('a string'[1:2] == x )",
"('a string' + 'b string' == x )",
"(('a string' + 'b string')[3:5] == x)"
};
const std::size_t invalid_expr_size = sizeof(invalid_expr) / sizeof(std::string);