TEST_EQUAL(file.getSpectrumById(1)->getMZArray()->data == file2.getSpectrumById(1)->getMZArray()->data, true)
  TEST_EQUAL(file.getSpectrumById(1)->getIntensityArray()->data == file2.getSpectrumById(1)->getIntensityArray()->data, true)
  ABORT_IF(file.getNrChromatograms() != 1)
  TEST_EQUAL(file.getChromatogramById(0)->getTimeArray()->data == file2.getChromatogramById(0)->getTimeArray()->data, true)
  TEST_EQUAL(file.getChromatogramById(0)->getIntensityArray()->data == file2.getChromatogramById(0)->getIntensityArray()->data, true)
  /*
  TEST_EQUAL(file.getChromatogramById(0) == file2.getChromatogramById(0), true)
  TEST_EQUAL(file.getSpectrumById(1), file2.getSpectrumById(1))
  */
}
END_SECTION

START_SECTION(( bool getParsingSuccess() const))
{
  {
    IndexedMzMLFile file(OPENMS_GET_TEST_DATA_PATH("fileDoesNotExist"));
    TEST_EQUAL(file.getParsingSuccess(), false)
  }

  {
    IndexedMzMLFile file(OPENMS_GET_TEST_DATA_PATH("MzMLFile_1.mzML"));
    TEST_EQUAL(file.getParsingSuccess(), false)
  }

  {
    IndexedMzMLFile file(OPENMS_GET_TEST_DATA_PATH("IndexedmzMLFile_1.mzML"));
    TEST_EQUAL(file.getParsingSuccess(), true)
  }
}
END_SECTION
Beispiel #2
0
END_SECTION

START_SECTION((~IndexedMzMLFile()))
	delete ptr;
END_SECTION

START_SECTION((IndexedMzMLFile() ))
	ptr = new IndexedMzMLFile();
	TEST_NOT_EQUAL(ptr, nullPointer)
	delete ptr;
END_SECTION

START_SECTION(( bool getParsingSuccess() ))
{
  {
    IndexedMzMLFile file(OPENMS_GET_TEST_DATA_PATH("fileDoesNotExist"));
    TEST_EQUAL(file.getParsingSuccess(), false)
  }

  {
    IndexedMzMLFile file(OPENMS_GET_TEST_DATA_PATH("MzMLFile_1.mzML"));
    TEST_EQUAL(file.getParsingSuccess(), false)
  }

  {
    IndexedMzMLFile file(OPENMS_GET_TEST_DATA_PATH("IndexedmzMLFile_1.mzML"));
    TEST_EQUAL(file.getParsingSuccess(), true)
  }
}
END_SECTION