Changes

From Genome Analysis Wiki
Jump to navigationJump to search
no edit summary
Line 20: Line 20:  
     InputFile::setWriteFileType(InputFile::STD);
 
     InputFile::setWriteFileType(InputFile::STD);
 
     std::string filename = "results/stdFile.glf";
 
     std::string filename = "results/stdFile.glf";
     assert(InputFile::openFile(filename.c_str(), "wt") == true);
+
 
     assert(ifwrite(TEST_FILE_CONTENTS.c_str(), TEST_FILE_CONTENTS.length())  
+
     filePtr = ifopen(filename.c_str(), "wt");
           == TEST_FILE_CONTENTS.length());
+
    assert(filePtr != NULL);
     assert(ifclose() == 0);
+
   
 +
     assert(ifwrite(filePtr,
 +
                  IFILE_Test::TEST_FILE_CONTENTS.c_str(),  
 +
                  IFILE_Test::TEST_FILE_CONTENTS.length())  
 +
           == IFILE_Test::TEST_FILE_CONTENTS.length());
 +
   
 +
     assert(ifclose(filePtr) == 0);
 
</source>
 
</source>
  

Navigation menu