v1.12.0 #269

Merged
muellerr merged 493 commits from develop into main 2022-07-04 11:19:05 +02:00
Showing only changes of commit 1904cc168d - Show all commits

View File

@ -5,15 +5,18 @@
#include "../testEnvironment.h" #include "../testEnvironment.h"
#include <fstream> #include <fstream>
#include <stdexcept>
#include <iostream> #include <iostream>
#include "rapidcsv.h" #include "rapidcsv.h"
TEST_CASE("ACS Controller", "[AcsController]") { TEST_CASE("ACS Controller", "[AcsController]") {
SECTION("SectionTest") { SECTION("SectionTest") {
//acsCtrl.performOperation(); //acsCtrl.performOperation();
CHECK(1 == 1); CHECK(1 == 1);
try {
{ {
std::ifstream file("unittest/meineTestDaten.txt"); std::ifstream file("unittest/meineTestDaten.txt");
if (file.good()) { if (file.good()) {
@ -25,10 +28,14 @@ TEST_CASE("ACS Controller", "[AcsController]") {
} }
{ {
// rapidcsv::Document doc("unittest/meineTestDaten.txt"); rapidcsv::Document doc("unittest/meineTestDaten.txt");
// std::vector<int> col = doc.GetColumn<int>("test0"); std::vector<int> col = doc.GetColumn<int>("test0");
// std::cout << "Read " << col.size() << " values: " << col[0] << ", " << col[1] << std::endl; std::cout << "Read " << col.size() << " values: " << col[0] << ", " << col[1] << std::endl;
} }
} catch (const std::exception& e) {
sif::warning << "CSV file test exception occured: " << e.what() << std::endl;
}
REQUIRE(2 == 2); REQUIRE(2 == 2);
} }