Skip to content

Commit

Permalink
spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
not-napoleon committed Mar 21, 2024
1 parent 27eb46c commit 893d144
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ private static Equals equalsOf(Expression left, Expression right) {
private static LessThan lessThanOf(Expression left, Expression right) {
return new LessThan(EMPTY, left, right, null);
}

public static GreaterThan greaterThanOf(Expression left, Expression right) {
return new GreaterThan(EMPTY, left, right, randomZone());
}
Expand All @@ -68,13 +69,15 @@ public static NullEquals nullEqualsOf(Expression left, Expression right) {
public static LessThanOrEqual lessThanOrEqualOf(Expression left, Expression right) {
return new LessThanOrEqual(EMPTY, left, right, randomZone());
}

public static GreaterThanOrEqual greaterThanOrEqualOf(Expression left, Expression right) {
return new GreaterThanOrEqual(EMPTY, left, right, randomZone());
}

private static FieldAttribute getFieldAttribute() {
return TestUtils.getFieldAttribute("a");
}

//
// CombineDisjunction in Equals
//
Expand Down Expand Up @@ -176,6 +179,7 @@ public void testOrWithNonCombinableExpressions() {
assertEquals(fa, in.value());
assertThat(in.list(), contains(ONE, THREE));
}

// a == 1 AND a == 2 -> FALSE
public void testDualEqualsConjunction() {
FieldAttribute fa = getFieldAttribute();
Expand All @@ -186,6 +190,7 @@ public void testDualEqualsConjunction() {
Expression exp = rule.rule(new And(EMPTY, eq1, eq2));
assertEquals(FALSE, exp);
}

// a <=> 1 AND a <=> 2 -> FALSE
public void testDualNullEqualsConjunction() {
FieldAttribute fa = getFieldAttribute();
Expand Down

0 comments on commit 893d144

Please sign in to comment.