documentation correction and tests in PIMathVector.h
This commit is contained in:
@@ -24,14 +24,16 @@ TEST(PIMathVector_Test, resize) {
|
||||
PIMathVector<double> vector;
|
||||
vector.resize(newSize, a);
|
||||
ASSERT_TRUE(cmpVectorWithValue(vector, a, vector.size()));
|
||||
ASSERT_TRUE(vector.size() == newSize);
|
||||
}
|
||||
|
||||
TEST(PIMathVector_Test, resized) {
|
||||
uint newSize = 4u;
|
||||
double a = 5.0;
|
||||
PIMathVector<double> vector;
|
||||
vector.resized(newSize, a);
|
||||
ASSERT_TRUE(cmpVectorWithValue(vector, a, vector.size()));
|
||||
auto vect = vector.resized(newSize, a);
|
||||
ASSERT_TRUE(cmpVectorWithValue(vect, a, vect.size()) && vect.size() == newSize);
|
||||
ASSERT_TRUE(vect.size() == newSize);
|
||||
}
|
||||
|
||||
TEST(PIMathVector_Test, fill) {
|
||||
|
||||
Reference in New Issue
Block a user