def test_invalid_mergeInterval(self): with self.assertRaises(MergeException): mergeIntervals(Interval('(2, 4)'), Interval('(4, 6)'))
def test_mergeIntervals(self): self.assertEqual( str(mergeIntervals(Interval('(2, 5)'), Interval('[4, 6]'))), '[3,6]')
def test_mergeIntervals(self): self.assertEqual(str(mergeIntervals(Interval('(2, 5)'), Interval('[4, 6]'))), '[3,6]')