Update heuristics used to determine max state count, following a bug report from SAP.

Updated tests to match.


[SVN r35656]
This commit is contained in:
John Maddock
2006-10-18 12:56:45 +00:00
parent 67128fa65f
commit b057d0f943
3 changed files with 68 additions and 10 deletions

View File

@ -44,6 +44,12 @@ int test_main( int , char* [] )
BOOST_CHECK_THROW(boost::regex_search(bad_text, what, e2), std::runtime_error);
BOOST_CHECK(boost::regex_search(good_text, what, e2));
bad_text.assign((std::string::size_type)500000, 'a');
e2.assign("aaa*@");
BOOST_CHECK_THROW(0 == boost::regex_search(bad_text, what, e2), std::runtime_error);
good_text.assign((std::string::size_type)5000, 'a');
BOOST_CHECK(0 == boost::regex_search(good_text, what, e2));
return 0;
}