Browse Source

Reserve unix new line for SectionPairFileReaderIT

Patrick-Christopher Mattulat 1 year ago
parent
commit
2d2b684aa2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      test/cases/io/section-pair/reader/SectionPairFileReaderIT.cpp

+ 3 - 0
test/cases/io/section-pair/reader/SectionPairFileReaderIT.cpp

@@ -75,6 +75,9 @@ namespace
   TEST_F(SectionPairFileReaderIT, read)
   TEST_F(SectionPairFileReaderIT, read)
   {
   {
     SectionPairFileReaderParameter parameter{};
     SectionPairFileReaderParameter parameter{};
+    shared_ptr<SectionPairDocument> document = make_shared<SectionPairDocument>();
+    document->reserveNewLine(NewLine::getUnixNewLine());
+    parameter.setDocument(document);
     parameter.setFilePath(SectionPairFileReaderIT::getSectionPairFileLocation());
     parameter.setFilePath(SectionPairFileReaderIT::getSectionPairFileLocation());
     SectionPairFileReader reader{parameter};
     SectionPairFileReader reader{parameter};
     reader.read();
     reader.read();