Fixed bug in assert_equal for vector<V> - was always returning true without checking vector contents!

release/4.3a0
Richard Roberts 2013-06-24 19:29:54 +00:00
parent d8527f7332
commit f603624248
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ bool assert_equal(const std::vector<V>& expected, const std::vector<V>& actual,
if(match) {
size_t i = 0;
BOOST_FOREACH(const V& a, expected) {
if (!assert_equal(a, expected[i++], tol)) {
if (!assert_equal(a, actual[i++], tol)) {
match = false;
break;
}