def test_at_min(self): self.assertTrue(num_in_ranges([[14, 15], [18, 19]], 14))
def test_lower_bound_ranges(self): self.assertTrue(num_in_ranges([[3, 12], [13, 18]], 13))
def test_at_max(self): self.assertTrue(num_in_ranges([[3, 8], [15, 17]], 17))
def test_below_ranges(self): self.assertFalse(num_in_ranges([[3, 11], [13, 18]], 2))
def test_above_ranges(self): self.assertFalse(num_in_ranges([[-3, -1], [-1, 1]], 2))
def test_in_many_ranges(self): self.assertTrue(num_in_ranges([[0, 3], [5, 6]], 2))
def test_between_ranges(self): self.assertFalse(num_in_ranges([[0, 1], [3, 5]], 2))
def test_not_in_single_range(self): self.assertFalse(num_in_ranges([[5, 20]], 2))