mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-01-31 18:04:55 +01:00
formatted main branch
This commit is contained in:
@@ -10,7 +10,7 @@ std::string ifstream_error_msg(std::ifstream &ifs) {
|
||||
return " Bad file stream";
|
||||
} else if (state & std::ios_base::failbit) {
|
||||
return " File read failed";
|
||||
}else{
|
||||
} else {
|
||||
return " Unknown/no error";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
#include "aare/utils/task.hpp"
|
||||
|
||||
#include <catch2/matchers/catch_matchers_floating_point.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <catch2/matchers/catch_matchers_floating_point.hpp>
|
||||
|
||||
|
||||
TEST_CASE("Split a range into multiple tasks"){
|
||||
TEST_CASE("Split a range into multiple tasks") {
|
||||
|
||||
auto tasks = aare::split_task(0, 10, 3);
|
||||
REQUIRE(tasks.size() == 3);
|
||||
@@ -22,11 +21,8 @@ TEST_CASE("Split a range into multiple tasks"){
|
||||
|
||||
tasks = aare::split_task(0, 10, 10);
|
||||
REQUIRE(tasks.size() == 10);
|
||||
for (int i = 0; i < 10; i++){
|
||||
for (int i = 0; i < 10; i++) {
|
||||
REQUIRE(tasks[i].first == i);
|
||||
REQUIRE(tasks[i].second == i+1);
|
||||
REQUIRE(tasks[i].second == i + 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user