Add coverage checks.

This commit is contained in:
2019-08-04 22:21:50 -07:00
parent de4dd70407
commit 323ac318f8
3 changed files with 40 additions and 2 deletions

View File

@@ -29,12 +29,18 @@ public:
* The default constructor creates a zero vector for a given
* type and size.
*/
Vector() { wr::math::DefaultEpsilon(this->epsilon); }
Vector()
{
wr::math::DefaultEpsilon(this->epsilon);
for (size_t i = 0; i < N; i++) {
this->arr[i] = 0.0;
}
}
/**
* If given an initializer_list, the vector is created with
* those values. There must be exactly N elements in the list.
* @param ilstutil
* @param ilst An intializer list with N elements of type T.
*/
Vector(std::initializer_list<T> ilst)
{