05.11., 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 545fca49 authored by Jens Petit's avatar Jens Petit

Fix tests from removing zero init (#50)

parent 542e602a
Pipeline #222572 passed with stages
in 29 minutes and 35 seconds
...@@ -29,12 +29,9 @@ SCENARIO("Constructing DataContainers") ...@@ -29,12 +29,9 @@ SCENARIO("Constructing DataContainers")
THEN("it has the correct DataDescriptor") { REQUIRE(dc.getDataDescriptor() == desc); } THEN("it has the correct DataDescriptor") { REQUIRE(dc.getDataDescriptor() == desc); }
THEN("it has a zero data vector of correct size") THEN("it has a data vector of correct size")
{ {
REQUIRE(dc.getSize() == desc.getNumberOfCoefficients()); REQUIRE(dc.getSize() == desc.getNumberOfCoefficients());
for (index_t i = 0; i < desc.getNumberOfCoefficients(); ++i)
REQUIRE(dc[i] == 0.0);
} }
} }
......
...@@ -122,6 +122,7 @@ TEMPLATE_TEST_CASE("Scenario: Assigning to DataHandlerMapCPU", "", float, double ...@@ -122,6 +122,7 @@ TEMPLATE_TEST_CASE("Scenario: Assigning to DataHandlerMapCPU", "", float, double
{ {
index_t size = 314; index_t size = 314;
DataHandlerCPU<TestType> dh{2 * size}; DataHandlerCPU<TestType> dh{2 * size};
dh = 0;
const auto dhMap = dh.getBlock(0, size); const auto dhMap = dh.getBlock(0, size);
WHEN("copy assigning") WHEN("copy assigning")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment