34 using namespace pwiz::msdata;
35 using namespace pwiz::util;
36 using namespace pwiz::minimxml;
63 "CompassXtract processing")));
81 unit_assert(sl->chromatogramIdentity(0).index == 0);
82 unit_assert(sl->chromatogramIdentity(0).id ==
"tic");
84 s = sl->chromatogram(0,
true);
86 vector < TimeIntensityPair > pairs;
87 s->getTimeIntensityPairs(pairs);
89 for (
int i = 0; i < 15; i++)
90 unit_assert(pairs[i].time == i && pairs[i].intensity == 15 - i);
94 s = sl->chromatogram(1,
true);
98 unit_assert(sl->chromatogramIdentity(1).index == 1);
99 unit_assert(sl->chromatogramIdentity(1).id ==
"sic");
102 s->getTimeIntensityPairs(pairs);
104 for (
int i = 0; i < 10; i++)
105 unit_assert(pairs[i].time == i && pairs[i].intensity == (10 - i));
111 int main(
int argc,
char* argv[])
117 if (argc > 1 && !strcmp(argv[1],
"-v"))
os_ = &cout;