void () { assertEquals(range(101, Long.MAX_VALUE), range(100, 200).fromRelation(RelationType.GT)); assertEquals(range(100, Long.MAX_VALUE), range(100, 200).fromRelation(RelationType.GE)); assertEquals(range(Long.MIN_VALUE, 199), range(100, 200).fromRelation(RelationType.LT)); assertEquals(range(Long.MIN_VALUE, 200), range(100, 200).fromRelation(RelationType.LE)); assertEquals(range(100, 200), range(100, 200).fromRelation(RelationType.EQ)); assertNull(range(100, 200).fromRelation(RelationType.IS)); assertEquals(fromTypeStrict(PsiTypes.longType()), range(100, 200).fromRelation(RelationType.NE)); assertEquals("{Long.MIN_VALUE..99, 101..Long.MAX_VALUE}", point(100).fromRelation(RelationType.NE).toString()); }