Skip to content
Snippets Groups Projects
Commit 366dd647 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ctor -> local class def

parent 221db95a
No related branches found
No related tags found
1 merge request!1215tests preferentially without TEST_F
...@@ -7,17 +7,16 @@ ...@@ -7,17 +7,16 @@
class IOReaderWriterTest : public ::testing::Test { class IOReaderWriterTest : public ::testing::Test {
protected: protected:
IOReaderWriterTest(); IOReaderWriterTest()
{
for (size_t i = 0, size = m_model_data.size(); i < size; ++i)
m_model_data[i] = static_cast<double>(i);
}
Datafield m_model_data{ Datafield m_model_data{
{new FixedBinAxis("x", 5, 1.0, 5.0), new FixedBinAxis("y", 10, 6.0, 7.0)}}; {new FixedBinAxis("x", 5, 1.0, 5.0), new FixedBinAxis("y", 10, 6.0, 7.0)}};
}; };
IOReaderWriterTest::IOReaderWriterTest()
{
for (size_t i = 0, size = m_model_data.size(); i < size; ++i)
m_model_data[i] = static_cast<double>(i);
}
TEST_F(IOReaderWriterTest, TestRWINT) TEST_F(IOReaderWriterTest, TestRWINT)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment