void () { assertEquals("{0..100}", range(0, 100).meet(range(0, 100)).toString()); assertEquals("{100}", range(0, 100).meet(range(100, 200)).toString()); assertTrue(range(0, 100).meet(range(101, 200)).isEmpty()); assertTrue(point(100).meet(point(200)).isEmpty()); assertFalse(point(100).meet(range(99, 101)).isEmpty()); LongRangeSet rangeSet = range(-1000, 1000).subtract(range(100, 500)).subtract(range(-500, -100)); assertEquals("{-1000..-501, -99..99, 501..1000}", rangeSet.toString()); assertEquals(point(99), rangeSet.meet(point(99))); assertTrue(rangeSet.meet(point(100)).isEmpty()); assertEquals("{0..99, 501..1000}", rangeSet.meet(JvmPsiRangeSetUtil.indexRange()).toString()); }