mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 21:37:13 +02:00
jf: timing info decoder (#987)
* timing_info_decoder command with options swissfel (default) and shine. added to python, command line generation, autocomplete, tostring, tests.
This commit is contained in:
@ -357,4 +357,17 @@ TEST_CASE("string to speedLevel") {
|
||||
REQUIRE(StringTo<defs::speedLevel>("144") == defs::speedLevel::G2_144MHZ);
|
||||
}
|
||||
|
||||
// Timing Info Decoder
|
||||
TEST_CASE("timingInfoDecoder to string") {
|
||||
REQUIRE(ToString(defs::timingInfoDecoder::SWISSFEL) == "swissfel");
|
||||
REQUIRE(ToString(defs::timingInfoDecoder::SHINE) == "shine");
|
||||
}
|
||||
|
||||
TEST_CASE("string to timingInfoDecoder") {
|
||||
REQUIRE(StringTo<defs::timingInfoDecoder>("swissfel") ==
|
||||
defs::timingInfoDecoder::SWISSFEL);
|
||||
REQUIRE(StringTo<defs::timingInfoDecoder>("shine") ==
|
||||
defs::timingInfoDecoder::SHINE);
|
||||
}
|
||||
|
||||
} // namespace sls
|
||||
|
Reference in New Issue
Block a user