documentation correction and tests in PIMathVector.h

This commit is contained in:
2020-10-01 17:07:01 +03:00
parent e16243d64b
commit 49905a3de0
4 changed files with 202 additions and 199 deletions

View File

@@ -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) {