diff --git a/tests/math/testpivector2d.cpp b/tests/math/testpivector2d.cpp index 37f77e8f..ae66b01c 100644 --- a/tests/math/testpivector2d.cpp +++ b/tests/math/testpivector2d.cpp @@ -30,12 +30,7 @@ protected: } void resize_reduce_is_data_stay_consistent(int newRowsCount, int newColsCount) { - piCout << "Before:"; - piCout << vec; - piCout << ""; vec.resize(newRowsCount, newColsCount, 0); - piCout << "After:"; - piCout << vec; assert_fill_with(vec, newRowsCount, newColsCount); } @@ -43,8 +38,9 @@ protected: vec.resize(newRowsCount, newColsCount, 0); assert_fill_with(vec, ROWS_COUNT_INIT, COLS_COUNT_INIT); - for (int r = ROWS_COUNT_INIT; r < newRowsCount; ++r) { - for (int c = COLS_COUNT_INIT; c < newColsCount; ++c) { + for (int r = 0; r < newRowsCount; ++r) { + for (int c = 0; c < newColsCount; ++c) { + if (r < ROWS_COUNT_INIT || c < COLS_COUNT_INIT) continue; ASSERT_EQ(vec.element(r, c), 0); } }