Added noexcept and constexpr (#21)

* noexcept and constexpr

* check size
This commit is contained in:
Erik Fröjdh
2019-05-14 11:08:25 +02:00
committed by Dhanya Thattil
parent fbada2e81a
commit 0224dccd2e
4 changed files with 75 additions and 33 deletions

View File

@ -201,5 +201,17 @@ SCENARIO("Assigning containers to each other", "[support]") {
REQUIRE(c[2] == 3);
}
}
WHEN("We create a const FixedCapacityContainer"){
const FixedCapacityContainer<int, 5> c(a);
THEN("The values are still the same using const operators"){
REQUIRE(c[0] == 1);
REQUIRE(c[1] == 2);
REQUIRE(c[2] == 3);
REQUIRE(c.front() == 1);
REQUIRE(c.back() == 3);
}
}
}
}
}