Prechádzať zdrojové kódy

Reserve unix new line for SectionPairFileReaderIT

Patrick-Christopher Mattulat 1 rok pred
rodič
commit
2d2b684aa2

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

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