@@ -477,67 +477,53 @@ func TestRangeBuilder(t *testing.T) {
477477 },
478478 // nulls
479479 {
480- or2 (
481- and2 (isNull (x ), gt2 (y , 5 )),
482- ),
480+ and2 (isNull (x ), gt2 (y , 5 )),
483481 sql.MySQLRangeCollection {
484482 r (null2 (), rgt (5 )),
485483 },
486- 1 ,
484+ 2 ,
487485 },
488486 {
489- or2 (
490- and2 (isNull (x ), isNotNull (y )),
491- ),
487+ and2 (isNull (x ), isNotNull (y )),
492488 sql.MySQLRangeCollection {
493489 r (null2 (), notNull ()),
494490 },
495- 1 ,
491+ 2 ,
496492 },
497493 {
498- or2 (
499- and2 (isNull (x ), lt2 (y , 5 )),
500- ),
494+ and2 (isNull (x ), lt2 (y , 5 )),
501495 sql.MySQLRangeCollection {
502496 r (null2 (), rlt (5 )),
503497 },
504- 1 ,
498+ 2 ,
505499 },
506500 {
507- or2 (
508- and (isNull (x ), gte2 (y , 5 )),
509- ),
501+ and (isNull (x ), gte2 (y , 5 )),
510502 sql.MySQLRangeCollection {
511503 r (null2 (), rgte (5 )),
512504 },
513- 1 ,
505+ 2 ,
514506 },
515507 {
516- or2 (
517- and (isNull (x ), lte2 (y , 5 )),
518- ),
508+ and (isNull (x ), lte2 (y , 5 )),
519509 sql.MySQLRangeCollection {
520510 r (null2 (), rlte (5 )),
521511 },
522- 1 ,
512+ 2 ,
523513 },
524514 {
525- or2 (
526- and (isNull (x ), lte2 (y , 5 )),
527- ),
515+ and (isNull (x ), lte2 (y , 5 )),
528516 sql.MySQLRangeCollection {
529517 r (null2 (), rlte (5 )),
530518 },
531- 1 ,
519+ 2 ,
532520 },
533521 {
534- or2 (
535- and2 (isNull (x ), eq2 (y , 1 )),
536- ),
522+ and2 (isNull (x ), eq2 (y , 1 )),
537523 sql.MySQLRangeCollection {
538524 r (null2 (), req (1 )),
539525 },
540- 1 ,
526+ 2 ,
541527 },
542528 }
543529
@@ -590,8 +576,6 @@ func TestRangeBuilder(t *testing.T) {
590576 require .NoError (t , err )
591577
592578 include := c .bestFilters
593- // most tests are designed so that all filters are supported
594- // |included| = |root.id|
595579 require .Equal (t , tt .cnt , include .Len ())
596580 if tt .cnt == 1 {
597581 require .True (t , include .Contains (1 ))
0 commit comments