formatted main branch

This commit is contained in:
2025-06-10 16:09:06 +02:00
parent efd2338f54
commit f9751902a2
87 changed files with 1710 additions and 1639 deletions

View File

@@ -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";
}
}

View File

@@ -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);
}
}