Revision d2d1748161787e2ef28ef86e24853a78e8d5d444 authored by Dmitri Naumov on 19 May 2021, 14:40:31 UTC, committed by Dmitri Naumov on 19 May 2021, 15:46:41 UTC
Functions are only used internally in the translation unit. No need to expose the interface.
1 parent c04b0b7
TestReadStringListFromFile.cpp
/**
* \file
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#include <gtest/gtest.h>
#include <string>
#include <vector>
#include "BaseLib/IO/readStringListFromFile.h"
#include "InfoLib/TestInfo.h"
TEST(BaseLibReadStringListFromFile, testreader)
{
std::string const filename = TestInfoLib::TestInfo::data_path +
"/MeshGeoToolsLib/Ammer/AmmerLayers.txt";
auto const list = BaseLib::IO::readStringListFromFile(filename);
ASSERT_EQ(4, list.size());
for (std::size_t i = 0; i < list.size(); ++i)
{
ASSERT_EQ(std::string("layer" + std::to_string(i) + ".vtu"), list[i]);
}
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...