mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 04:47:14 +02:00
added getPatternLoop
This commit is contained in:
@ -122,4 +122,16 @@ TEST_CASE("vector of bool", "[support]"){
|
||||
CHECK(minusOneIfDifferent(a) == 1);
|
||||
CHECK(minusOneIfDifferent(b) == 0);
|
||||
CHECK(minusOneIfDifferent(c) == -1);
|
||||
}
|
||||
|
||||
TEST_CASE("compare a vector of arrays", "[support]"){
|
||||
|
||||
std::vector<std::array<uint64_t, 3>> vec0{{5,6,8},{5,6,8},{5,6,8}};
|
||||
CHECK(minusOneIfDifferent(vec0) == std::array<uint64_t, 3>{5,6,8});
|
||||
|
||||
std::array<uint64_t, 3> arr;
|
||||
arr.fill(-1);
|
||||
std::vector<std::array<uint64_t, 3>> vec1{{5,90,8},{5,6,8},{5,6,8}};
|
||||
CHECK(minusOneIfDifferent(vec1) == arr);
|
||||
|
||||
}
|
Reference in New Issue
Block a user