moved string conversion to .cpp

This commit is contained in:
Erik Frojdh
2020-03-26 15:06:23 +01:00
parent 4d8a63eee1
commit fb051355b8
4 changed files with 477 additions and 437 deletions

View File

@ -10,6 +10,7 @@
// using namespace sls;
using sls::StringTo;
using sls::ToString;
using sls::defs;
using namespace sls::time;
TEST_CASE("Integer conversions", "[support]") {
@ -221,4 +222,10 @@ TEST_CASE("std::map of ints"){
m[372] = 999;
REQUIRE(ToString(m) == "{5: 10, 372: 999, 500: 50}");
}
TEST_CASE("Detector type"){
auto dt = defs::detectorType::EIGER;
REQUIRE(ToString(dt) == "Eiger");
REQUIRE(StringTo<defs::detectorType>("Eiger") == dt);
}