review fixes
This commit is contained in:
@@ -466,7 +466,7 @@ TEST_F(Vector2DTest, addColumn_with_empty_source_does_nothing_on_empty) {
|
||||
}
|
||||
|
||||
TEST_F(Vector2DTest, addColumn_with_empty_source_adds_default_column) {
|
||||
auto oldVec = vec;
|
||||
auto oldVec = vec;
|
||||
|
||||
vec.addColumn({});
|
||||
|
||||
@@ -610,17 +610,15 @@ TEST_F(Vector2DTest, contains_finds_element_in_flat_vector) {
|
||||
TEST_F(Vector2DTest, contains_with_start_parameter_works) {
|
||||
int target = 10 * COLS_COUNT_INIT + 15;
|
||||
EXPECT_TRUE(vec.contains(target));
|
||||
EXPECT_TRUE(vec.contains(target, target)); // start exactly at target (inclusive)
|
||||
EXPECT_FALSE(vec.contains(target, target + 1)); // start after target
|
||||
}
|
||||
|
||||
TEST_F(Vector2DTest, contains_vector_of_elements_works) {
|
||||
PIVector<int> searchFor;
|
||||
searchFor << 100 << 200 << 300;
|
||||
EXPECT_TRUE(vec.contains(searchFor));
|
||||
EXPECT_TRUE(vec.asPlainVector().containsAll(searchFor));
|
||||
|
||||
searchFor << -999;
|
||||
EXPECT_FALSE(vec.contains(searchFor));
|
||||
EXPECT_FALSE(vec.asPlainVector().containsAll(searchFor));
|
||||
}
|
||||
|
||||
TEST_F(Vector2DTest, entries_counts_occurrences) {
|
||||
|
||||
Reference in New Issue
Block a user