20 CPPUNIT_ASSERT_EQUAL (2, i->from);
21 CPPUNIT_ASSERT_EQUAL (4, i->to);
24 CPPUNIT_ASSERT_EQUAL (5, i->from);
25 CPPUNIT_ASSERT_EQUAL (8, i->to);
48 CPPUNIT_ASSERT_EQUAL (
size_t (3), s.size ());
51 CPPUNIT_ASSERT_EQUAL (0, i->from);
52 CPPUNIT_ASSERT_EQUAL (1, i->to);
55 CPPUNIT_ASSERT_EQUAL (5, i->from);
56 CPPUNIT_ASSERT_EQUAL (6, i->to);
59 CPPUNIT_ASSERT_EQUAL (9, i->from);
60 CPPUNIT_ASSERT_EQUAL (10, i->to);
75 CPPUNIT_ASSERT_EQUAL (
size_t (1), s.size ());
78 CPPUNIT_ASSERT_EQUAL (0, i->from);
79 CPPUNIT_ASSERT_EQUAL (10, i->to);
94 CPPUNIT_ASSERT_EQUAL (
size_t (0), s.size ());
120 CPPUNIT_ASSERT_EQUAL (
size_t (3), s.size ());
123 CPPUNIT_ASSERT_EQUAL (0, i->from);
124 CPPUNIT_ASSERT_EQUAL (1, i->to);
127 CPPUNIT_ASSERT_EQUAL (5, i->from);
128 CPPUNIT_ASSERT_EQUAL (6, i->to);
131 CPPUNIT_ASSERT_EQUAL (10, i->from);
132 CPPUNIT_ASSERT_EQUAL (10, i->to);
158 CPPUNIT_ASSERT_EQUAL (
size_t (2), s.size ());
161 CPPUNIT_ASSERT_EQUAL (5, i->from);
162 CPPUNIT_ASSERT_EQUAL (5, i->to);
165 CPPUNIT_ASSERT_EQUAL (8, i->from);
166 CPPUNIT_ASSERT_EQUAL (8, i->to);
RangeList< T > subtract(Range< T > range, RangeList< T > sub)
void add(Range< T > const &range)
std::list< Range< T > > List
CPPUNIT_TEST_SUITE_REGISTRATION(RangeTest)
PBD::PropertyDescriptor< int > fred
OverlapType coverage(T sa, T ea, T sb, T eb)