| 642 | TEST_PRECONDITION_VIOLATED(exp.areaBeginConst(15,0,15,0)) |
| 643 | } |
| 644 | END_SECTION |
| 645 | |
| 646 | START_SECTION(MSExperiment::ConstAreaIterator MSExperiment::areaBeginConst(const RangeManagerType& range) const) |
| 647 | { |
| 648 | MSExperiment::RangeManagerType rm; |
| 649 | (RangeRT&)rm = RangeBase(0, 2); |
| 650 | (RangeMZ&)rm = RangeBase(3, 11); |
| 651 | |
| 652 | const auto& exp = exp_area; |
| 653 | PeakMap::ConstAreaIterator it = exp.areaBeginConst(rm); |
| 654 | TEST_EQUAL(it->getPosition()[0], 3.0) |
| 655 | ++it; |
| 656 | TEST_EQUAL(it->getPosition()[0], 10.0) |
| 657 | ++it; |
| 658 | TEST_EQUAL(it->getPosition()[0], 11.0) |
| 659 | ++it; |
| 660 | TEST_EQUAL(it == exp.areaEndConst(), true) |
| 661 | |
| 662 | // add mobility as constraint |
| 663 | (RangeMobility&)rm = RangeBase(2, 2); |
| 664 | it = exp.areaBeginConst(rm); |
| 665 | TEST_EQUAL(it->getPosition()[0], 10.0) |
| 666 | ++it; |
| 667 | TEST_EQUAL(it->getPosition()[0], 11.0) |
| 668 | ++it; |
| 669 | TEST_EQUAL(it == exp.areaEndConst(), true) |
| 670 | } |
| 671 | END_SECTION |
| 672 | |
| 673 | START_SECTION((AreaIterator areaEnd())) |
no test coverage detected