mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 12:27:14 +02:00
Added noexcept and constexpr (#21)
* noexcept and constexpr * check size
This commit is contained in:

committed by
Dhanya Thattil

parent
fbada2e81a
commit
0224dccd2e
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user