replaced BOOST_TEST

[SVN r27053]
This commit is contained in:
Stefan Slapeta
2005-02-03 13:24:55 +00:00
parent dbb39f3589
commit 012fe3a99d
2 changed files with 9 additions and 9 deletions

View File

@ -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]);
}
}
}