def test_findRanges_2(self):
     a = [[1, 10], [20, 30], [3, 6], [22, 23], [100, 200], [110, 190], [120, 180], [130, 170]]
     b = findRanges(a)
     for i in range(len(a)):
         for j in range(a[i][0], a[i][1] + 1):
             if j not in b:
                 self.assert_(False)
     self.assert_(True)
 def test_findRanges_3(self):
     a = [[1, 10], [10, 20], [20, 30], [40, 50], [47, 55], [53, 60]]
     b = findRanges(a)
     for i in range(len(a)):
         for j in range(a[i][0], a[i][1] + 1):
             if j not in b:
                 self.assert_(False)
     self.assert_(True)
 def test_findRanges_1(self):
     a = [[1, 10], [100, 200], [201, 210], [1000, 900]]
     b = findRanges(a)
     for i in range(len(a)):
         for j in range(a[i][0], a[i][1] + 1):
             if j not in b:
                 self.assert_(False)
     self.assert_(True)