def test6(self): intervals = [[2,4],[1,2],[4,5]] res = answer2_2(intervals) self.assertEqual(res, 4)
def test3(self): intervals = [[1,2],[2,2**30-1]] res = answer2_2(intervals) self.assertEqual(res, 2**30-2)
def test5(self): intervals = [[1,2],[4,5]] res = answer2_2(intervals) self.assertEqual(res, 2)
def test1(self): intervals = [[1,2],] res = answer2_2(intervals) self.assertEqual(res, 1)