PIVector2D tests
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
#include "pivector2d.h"
|
#include "pivector2d.h"
|
||||||
|
|
||||||
int ROWS_COUNT_INIT = 3;
|
int ROWS_COUNT_INIT = 31;
|
||||||
int ROWS_COUNT_INCREASE = 4;
|
int ROWS_COUNT_INCREASE = 41;
|
||||||
int ROWS_COUNT_REDUCE = 2;
|
int ROWS_COUNT_REDUCE = 22;
|
||||||
|
|
||||||
int COLS_COUNT_INIT = 3;
|
int COLS_COUNT_INIT = 34;
|
||||||
int COLS_COUNT_INCREASE = 4;
|
int COLS_COUNT_INCREASE = 44;
|
||||||
int COLS_COUNT_REDUCE = 2;
|
int COLS_COUNT_REDUCE = 13;
|
||||||
|
|
||||||
void assert_fill_with(PIVector2D<int> vec, int rows, int cols) {
|
void assert_fill_with(PIVector2D<int> vec, int rows, int cols) {
|
||||||
for(int r = 0; r < rows; r++) {
|
for(int r = 0; r < rows; r++) {
|
||||||
@@ -85,4 +85,4 @@ TEST_F(Vector2D, resize_reduce_rows_is_data_stay_consistent) {
|
|||||||
|
|
||||||
TEST_F(Vector2D, resize_reduce_both_is_data_stay_consistent) {
|
TEST_F(Vector2D, resize_reduce_both_is_data_stay_consistent) {
|
||||||
resize_reduce_is_data_stay_consistent(ROWS_COUNT_REDUCE, COLS_COUNT_REDUCE);
|
resize_reduce_is_data_stay_consistent(ROWS_COUNT_REDUCE, COLS_COUNT_REDUCE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user