mirror of
https://github.com/pantor/inja.git
synced 2026-04-30 19:19:30 +00:00
fix read json bug 2
This commit is contained in:
@@ -48,6 +48,13 @@ TEST_CASE("search-with-multiple-possible-regexes") {
|
||||
CHECK( match.str() == "ipsum" );
|
||||
CHECK( match.str(1) == "s" );
|
||||
}
|
||||
|
||||
SECTION("basic 3") {
|
||||
std::vector<inja::Regex> regex_patterns = { inja::Regex("upper\\((.*)\\)"), inja::Regex("lower\\((.*)\\)"), inja::Regex("[^()]*?") };
|
||||
inja::Match match = inja::search("upper(lower(name))", regex_patterns, 0);
|
||||
CHECK( match.regex_number() == 0 );
|
||||
CHECK( match.str(1) == "lower(name)" );
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("search-on-level") {
|
||||
|
||||
Reference in New Issue
Block a user