Use constexpr based definitions instead of macros
This commit is contained in:
@@ -169,10 +169,10 @@ TEST_CASE("DetectorSetup_LoadGainFile") {
|
||||
TEST_CASE("DetectorSetup_MaxFrameTime") {
|
||||
DetectorSetup s1(DetectorGeometryModular(8), DetectorType::JUNGFRAU);
|
||||
s1.UDPInterfaceCount(1);
|
||||
REQUIRE(s1.GetMinFrameTime() == std::chrono::microseconds(MIN_FRAME_TIME_JUNGFRAU_HALF_SPEED_IN_US));
|
||||
REQUIRE(s1.GetMinFrameTime() == MIN_FRAME_TIME_JUNGFRAU_HALF_SPEED);
|
||||
s1.UDPInterfaceCount(2);
|
||||
REQUIRE(s1.GetMinFrameTime() == std::chrono::microseconds(MIN_FRAME_TIME_JUNGFRAU_FULL_SPEED_IN_US));
|
||||
REQUIRE(s1.GetMinFrameTime() == MIN_FRAME_TIME_JUNGFRAU_FULL_SPEED);
|
||||
|
||||
DetectorSetup s2(DetectorGeometryModular(8), DetectorType::EIGER);
|
||||
REQUIRE(s2.GetMinFrameTime() == std::chrono::microseconds(MIN_FRAME_TIME_EIGER_IN_US));
|
||||
REQUIRE(s2.GetMinFrameTime() == MIN_FRAME_TIME_EIGER);
|
||||
}
|
||||
Reference in New Issue
Block a user