mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-05-04 06:14:13 +02:00
allow ints, doubles, implicit conversions
This commit is contained in:
@@ -147,7 +147,7 @@ TEST_CASE("string to std::chrono::duration", "[support]") {
|
||||
}
|
||||
|
||||
TEST_CASE("string to frequency", "[support]") {
|
||||
REQUIRE(StringTo<defs::Hz>("150Hz") == defs::Hz(150));
|
||||
REQUIRE(StringTo<defs::Hz>("150") == defs::Hz(150));
|
||||
REQUIRE(StringTo<defs::Hz>("150Hz") == defs::Hz(150));
|
||||
REQUIRE(StringTo<defs::Hz>("1.5kHz") == defs::Hz(1500));
|
||||
REQUIRE(StringTo<defs::Hz>("1.5MHz") == defs::Hz(1500000));
|
||||
|
||||
Reference in New Issue
Block a user