@@ -150,22 +150,6 @@ public void testAndAllTrue() {
150150 assertThat (result ).isEqualTo (PredicateBuilder .alwaysTrue ());
151151 }
152152
153- @ Test
154- public void testAndProducesFlatCompound () {
155- PredicateBuilder builder =
156- new PredicateBuilder (RowType .of (new IntType (), new IntType (), new IntType ()));
157- Predicate a = builder .equal (0 , 1 );
158- Predicate b = builder .equal (1 , 2 );
159- Predicate c = builder .equal (2 , 3 );
160-
161- Predicate result = PredicateBuilder .and (a , b , c );
162- // Should be a flat CompoundPredicate, not nested binary
163- assertThat (result ).isInstanceOf (CompoundPredicate .class );
164- CompoundPredicate compound = (CompoundPredicate ) result ;
165- assertThat (compound .function ()).isInstanceOf (And .class );
166- assertThat (compound .children ()).containsExactly (a , b , c );
167- }
168-
169153 // ---- or() tests ----
170154
171155 @ Test
@@ -200,22 +184,6 @@ public void testOrAllFalse() {
200184 assertThat (result ).isEqualTo (PredicateBuilder .alwaysFalse ());
201185 }
202186
203- @ Test
204- public void testOrProducesFlatCompound () {
205- PredicateBuilder builder =
206- new PredicateBuilder (RowType .of (new IntType (), new IntType (), new IntType ()));
207- Predicate a = builder .equal (0 , 1 );
208- Predicate b = builder .equal (1 , 2 );
209- Predicate c = builder .equal (2 , 3 );
210-
211- Predicate result = PredicateBuilder .or (a , b , c );
212- // Should be a flat CompoundPredicate, not nested binary
213- assertThat (result ).isInstanceOf (CompoundPredicate .class );
214- CompoundPredicate compound = (CompoundPredicate ) result ;
215- assertThat (compound .function ()).isInstanceOf (Or .class );
216- assertThat (compound .children ()).containsExactly (a , b , c );
217- }
218-
219187 // ---- and/or evaluation tests ----
220188
221189 @ Test
0 commit comments