forked from boostorg/regex
Fixed test program after changes to regex_match code.
[SVN r14111]
This commit is contained in:
@ -594,7 +594,12 @@ void cpp_hl_tests(RegEx& e, bool recurse = true)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if((matches[0] == 0) && (e.Match(search_text.c_str(), flags[3])))
|
//
|
||||||
|
// test RegEx::Match only if we expect to match all of the input:
|
||||||
|
//
|
||||||
|
if((matches[0] == 0) && (matches[1] == search_text.size()))
|
||||||
|
{
|
||||||
|
if(e.Match(search_text.c_str(), flags[3]))
|
||||||
{
|
{
|
||||||
unsigned int i = 0;
|
unsigned int i = 0;
|
||||||
unsigned int j = 0;
|
unsigned int j = 0;
|
||||||
@ -610,6 +615,12 @@ void cpp_hl_tests(RegEx& e, bool recurse = true)
|
|||||||
j += 2;
|
j += 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
begin_error();
|
||||||
|
cout << "Match expected but not found with RegEx::Match" << endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user