diff --git a/unittest/controller/testAcsController.cpp b/unittest/controller/testAcsController.cpp index ed5bea7e..8088677d 100644 --- a/unittest/controller/testAcsController.cpp +++ b/unittest/controller/testAcsController.cpp @@ -14,16 +14,20 @@ TEST_CASE("ACS Controller", "[AcsController]") { //acsCtrl.performOperation(); CHECK(1 == 1); - std::ifstream file("unittest/meineTestDaten.txt"); - std::string line; - while(std::getline(file, line)) { - std::cout << "ACS CTRL Test test file: " << line << std::endl; + { + std::ifstream file("unittest/meineTestDaten.txt"); + std::string line; + while(std::getline(file, line)) { + std::cout << "ACS CTRL Test test file: " << line << std::endl; + } } - file.close(); - rapidcsv::Document doc("unittest/meineTestDaten.txt"); - std::vector col = doc.GetColumn("test0"); - std::cout << "Read " << col.size() << " values: " << col[0] << ", " << col[1] << std::endl; + { + rapidcsv::Document doc("unittest/meineTestDaten.txt"); + std::vector col = doc.GetColumn("test0"); + std::cout << "Read " << col.size() << " values: " << col[0] << ", " << col[1] << std::endl; + + } REQUIRE(2 == 2); }