mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-17 16:30:02 +01:00
WIP
This commit is contained in:
1 parent
935f7bc960
commit
f99ebc7f21
3 files changed
+110
-77
No files matched your search
@@ -149,4 +149,19 @@ TEST_CASE("emplace back"){
|
||||
REQUIRE(res.size() == 1);
|
||||
REQUIRE(res[0].size() == 5);
|
||||
REQUIRE(res[0] == vec);
|
||||
}
|
||||
|
||||
TEST_CASE("Free function begin end"){
|
||||
Result<std::string> res{"ett", "nio", "sjutton"};
|
||||
REQUIRE(begin(res) == res.begin());
|
||||
REQUIRE(end(res) == res.end());
|
||||
}
|
||||
|
||||
TEST_CASE("Sorting a Result"){
|
||||
Result<int> res{4,5,1,3};
|
||||
std::sort(res.begin(), res.end());
|
||||
REQUIRE(res[0] == 1);
|
||||
REQUIRE(res[1] == 3);
|
||||
REQUIRE(res[2] == 4);
|
||||
REQUIRE(res[3] == 5);
|
||||
}
|
||||
Reference in new issue
Block a user