score = (*e_ptr)(spec1, spec1); TEST_REAL_SIMILAR(score, 12295.5) SpectrumCheapDPCorr corr; score = corr(spec1, spec2); TEST_REAL_SIMILAR(score, 10145.4) score = corr(spec1, spec1); TEST_REAL_SIMILAR(score, 12295.5) END_SECTION START_SECTION(const PeakSpectrum& lastconsensus() const) TEST_EQUAL(e_ptr->lastconsensus().size(), 121) END_SECTION START_SECTION((Map<UInt, UInt> getPeakMap() const)) TEST_EQUAL(e_ptr->getPeakMap().size(), 121) END_SECTION START_SECTION(double operator () (const PeakSpectrum& a) const) DTAFile dta_file; PeakSpectrum spec1; dta_file.load(OPENMS_GET_TEST_DATA_PATH("Transformers_tests.dta"), spec1); double score = (*e_ptr)(spec1); TEST_REAL_SIMILAR(score, 12295.5)