tests for bool in ToString/StringTo (#1230)
All checks were successful
Build on RHEL9 / build (push) Successful in 3m18s
Build on RHEL8 / build (push) Successful in 4m57s

- Added tests for ToString/StringTo<bool>
- Added overload for ToString of bool (previously went through int)
This commit is contained in:
Erik Fröjdh
2025-06-03 08:36:29 +02:00
committed by GitHub
parent c92830f854
commit f84454fbc1
4 changed files with 20 additions and 1 deletions

View File

@@ -5,6 +5,13 @@
namespace sls {
std::string ToString(bool value) {
return value ? "1" : "0";
}
std::string ToString(const slsDetectorDefs::xy &coord) {
std::ostringstream oss;
oss << '[' << coord.x << ", " << coord.y << ']';