mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "catch.hpp"
|
||||
#include "slsDetector.h"
|
||||
#include "sls_detector_defs.h"
|
||||
|
||||
using dt = slsDetectorDefs::detectorType;
|
||||
|
Reference in New Issue
Block a user