code format
This commit is contained in:
@@ -1,23 +1,24 @@
|
||||
#include "gtest/gtest.h"
|
||||
#include "pivector2d.h"
|
||||
|
||||
int ROWS_COUNT_INIT = 31;
|
||||
int ROWS_COUNT_INCREASE = 41;
|
||||
int ROWS_COUNT_REDUCE = 22;
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
int COLS_COUNT_INIT = 34;
|
||||
int ROWS_COUNT_INIT = 31;
|
||||
int ROWS_COUNT_INCREASE = 41;
|
||||
int ROWS_COUNT_REDUCE = 22;
|
||||
|
||||
int COLS_COUNT_INIT = 34;
|
||||
int COLS_COUNT_INCREASE = 44;
|
||||
int COLS_COUNT_REDUCE = 13;
|
||||
int COLS_COUNT_REDUCE = 13;
|
||||
|
||||
void assert_fill_with(PIVector2D<int> vec, int rows, int cols) {
|
||||
for(int r = 0; r < rows; r++) {
|
||||
for(int c = 0; c < cols; c++) {
|
||||
for (int r = 0; r < rows; r++) {
|
||||
for (int c = 0; c < cols; c++) {
|
||||
ASSERT_EQ(vec.element(r, c), r * COLS_COUNT_INIT + c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Vector2D : public ::testing::Test {
|
||||
class Vector2D: public ::testing::Test {
|
||||
protected:
|
||||
PIVector2D<int> vec = PIVector2D<int>(ROWS_COUNT_INIT, COLS_COUNT_INIT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user