virtual void updateRanges2() { std::vector<Peak2D > vec; Peak2D tmp; tmp.getPosition()[0] = 2.0; tmp.getPosition()[1] = 500.0; tmp.setIntensity(1.0f); vec.push_back(tmp); clearRanges(); updateRanges_(vec.begin(), vec.end()); }
START_SECTION((Peak2D())) d10_ptr = new Peak2D; TEST_NOT_EQUAL(d10_ptr, d10_nullPointer) END_SECTION START_SECTION((~Peak2D())) delete d10_ptr; END_SECTION START_SECTION((IntensityType getIntensity() const)) TEST_REAL_SIMILAR(Peak2D().getIntensity(), 0.0) END_SECTION START_SECTION((PositionType const& getPosition() const)) const Peak2D p; TEST_REAL_SIMILAR(p.getPosition()[0], 0.0) TEST_REAL_SIMILAR(p.getPosition()[1], 0.0) END_SECTION START_SECTION((CoordinateType getRT() const)) TEST_REAL_SIMILAR(Peak2D().getRT(), 0.0) END_SECTION START_SECTION((CoordinateType getMZ() const)) TEST_REAL_SIMILAR(Peak2D().getMZ(), 0.0) END_SECTION START_SECTION((void setRT(CoordinateTypecoordinate))) Peak2D p0; p0.setRT(12345.0); TEST_REAL_SIMILAR(p0.getRT(), 12345.0)