mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
formatting
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include "TypeTraits.h"
|
||||
#include "ToString.h"
|
||||
#include "TypeTraits.h"
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
@ -189,7 +189,4 @@ std::ostream &operator<<(std::ostream &os,
|
||||
return os << ToString(c);
|
||||
}
|
||||
|
||||
|
||||
} // namespace sls
|
||||
|
||||
|
||||
|
@ -264,10 +264,10 @@ ToString(const T &obj) {
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::vector<T> StringTo(const std::vector<std::string>& strings){
|
||||
std::vector<T> StringTo(const std::vector<std::string> &strings) {
|
||||
std::vector<T> result;
|
||||
result.reserve(strings.size());
|
||||
for (const auto& s : strings)
|
||||
for (const auto &s : strings)
|
||||
result.push_back(StringTo<T>(s));
|
||||
return result;
|
||||
}
|
||||
|
@ -3,10 +3,10 @@
|
||||
#define APILIB 0x200409
|
||||
#define APIRECEIVER 0x200409
|
||||
#define APIGUI 0x200409
|
||||
#define APIEIGER 0x200610
|
||||
#define APICTB 0x200610
|
||||
#define APIGOTTHARD 0x200610
|
||||
#define APIEIGER 0x200610
|
||||
#define APICTB 0x200610
|
||||
#define APIGOTTHARD 0x200610
|
||||
#define APIGOTTHARD2 0x200610
|
||||
#define APIJUNGFRAU 0x200610
|
||||
#define APIMYTHEN3 0x200610
|
||||
#define APIMOENCH 0x200610
|
||||
#define APIJUNGFRAU 0x200610
|
||||
#define APIMYTHEN3 0x200610
|
||||
#define APIMOENCH 0x200610
|
||||
|
@ -3,8 +3,8 @@
|
||||
#include "catch.hpp"
|
||||
|
||||
#include <array>
|
||||
#include <vector>
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
using sls::StaticVector;
|
||||
|
||||
TEST_CASE("StaticVector is a container") {
|
||||
|
@ -31,7 +31,6 @@ TEST_CASE("copy a long string") {
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
TEST_CASE("split a string with end delimiter") {
|
||||
std::string s("abra+kadabra+");
|
||||
auto r = sls::split(s, '+');
|
||||
@ -49,7 +48,6 @@ TEST_CASE("split a string without end delimiter") {
|
||||
REQUIRE(r[2] == "filibom");
|
||||
}
|
||||
|
||||
|
||||
TEST_CASE("Remove char from string") {
|
||||
char str[] = "sometest";
|
||||
sls::removeChar(str, 'e');
|
||||
|
Reference in New Issue
Block a user