forked from boostorg/regex
replaced BOOST_TEST
[SVN r27053]
This commit is contained in:
@ -37,14 +37,14 @@ void test_captures(const std::string& regx, const std::string& text, T& expected
|
||||
unsigned i, j;
|
||||
#ifndef __sgi
|
||||
// strange type deduction causes this test to fail on SGI:
|
||||
BOOST_TEST(what.size() == ARRAY_SIZE(expected));
|
||||
BOOST_CHECK(what.size() == ARRAY_SIZE(expected));
|
||||
#endif
|
||||
for(i = 0; i < what.size(); ++i)
|
||||
{
|
||||
BOOST_TEST(what.captures(i).size() <= ARRAY_SIZE(expected[i]));
|
||||
BOOST_CHECK(what.captures(i).size() <= ARRAY_SIZE(expected[i]));
|
||||
for(j = 0; j < what.captures(i).size(); ++j)
|
||||
{
|
||||
BOOST_TEST(what.captures(i)[j] == expected[i][j]);
|
||||
BOOST_CHECK(what.captures(i)[j] == expected[i][j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user