BendCalc/tests/DataLoadTest.cpp

17 lines
462 B
C++

#define DATA_LOAD_TEST_SOURCE DataLoadTest.cpp
#include "gtest/gtest.h"
#include "DataLoad.h"
TEST(DataLoadTest, LoadsDataFromFile) {
const std::string testFile = "test_data.csv"; // Ensure this file exists and has the correct format
DataLoad::loadDataFromCSV(testFile);
// Add assertions here to check if the data was loaded correctly
}
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}