forked from boostorg/regex
Final tweaks, almost ready for release...
[SVN r18400]
This commit is contained in:
1 parent
6104fe14eb
commit
460d2a97a9
38 files changed
+2875
-2456
No files matched your search
@@ -58,6 +58,18 @@ test-suite regex
|
||||
c_compiler_checks/wide_posix_api_check.cpp
|
||||
]
|
||||
|
||||
[ regex-test bad_expression_test
|
||||
: <template>test # sources
|
||||
pathology/bad_expression_test.cpp
|
||||
<lib>../../test/build/boost_test_exec_monitor
|
||||
]
|
||||
|
||||
[ regex-test recursion_test
|
||||
: <template>test # sources
|
||||
pathology/recursion_test.cpp
|
||||
<lib>../../test/build/boost_test_exec_monitor
|
||||
]
|
||||
;
|
||||
|
||||
|
||||
|
||||
@@ -42,11 +42,11 @@ int test_main( int argc, char* argv[] )
|
||||
BOOST_CHECK_THROW(boost::regex_match(bad_text, what, e1), std::runtime_error);
|
||||
BOOST_CHECK(boost::regex_match(good_text, what, e1));
|
||||
|
||||
boost::regex e2("abc|[[:space:]]+xyz");
|
||||
boost::regex e2("abc|[[:space:]]+(xyz)?[[:space:]]+xyz");
|
||||
|
||||
BOOST_CHECK(boost::regex_search(good_text, what, e2));
|
||||
BOOST_CHECK_THROW(boost::regex_search(bad_text, what, e2), std::runtime_error);
|
||||
BOOST_CHECK(boost::regex_search(good_text, what, e2));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user