expect.push_back(CommentZone(48, 55));
expect.push_back(CommentZone(55, string::npos));
expect.push_back(CommentZone(62, 72));
- vector<CommentZone> result;
- find_html_comments(text, result);
+ vector<CommentZone> result = find_html_comments(text);
//BOOST_CHECK_EQUAL_COLLECTIONS(result.begin(), result.end(), not working, requires ...
// expect.begin(), expect.end()); ... operator<<(CommentZone)
BOOST_CHECK_EQUAL(result.size(), expect.size());