@@ -477,67 +477,53 @@ func TestRangeBuilder(t *testing.T) {
477
477
},
478
478
// nulls
479
479
{
480
- or2 (
481
- and2 (isNull (x ), gt2 (y , 5 )),
482
- ),
480
+ and2 (isNull (x ), gt2 (y , 5 )),
483
481
sql.MySQLRangeCollection {
484
482
r (null2 (), rgt (5 )),
485
483
},
486
- 1 ,
484
+ 2 ,
487
485
},
488
486
{
489
- or2 (
490
- and2 (isNull (x ), isNotNull (y )),
491
- ),
487
+ and2 (isNull (x ), isNotNull (y )),
492
488
sql.MySQLRangeCollection {
493
489
r (null2 (), notNull ()),
494
490
},
495
- 1 ,
491
+ 2 ,
496
492
},
497
493
{
498
- or2 (
499
- and2 (isNull (x ), lt2 (y , 5 )),
500
- ),
494
+ and2 (isNull (x ), lt2 (y , 5 )),
501
495
sql.MySQLRangeCollection {
502
496
r (null2 (), rlt (5 )),
503
497
},
504
- 1 ,
498
+ 2 ,
505
499
},
506
500
{
507
- or2 (
508
- and (isNull (x ), gte2 (y , 5 )),
509
- ),
501
+ and (isNull (x ), gte2 (y , 5 )),
510
502
sql.MySQLRangeCollection {
511
503
r (null2 (), rgte (5 )),
512
504
},
513
- 1 ,
505
+ 2 ,
514
506
},
515
507
{
516
- or2 (
517
- and (isNull (x ), lte2 (y , 5 )),
518
- ),
508
+ and (isNull (x ), lte2 (y , 5 )),
519
509
sql.MySQLRangeCollection {
520
510
r (null2 (), rlte (5 )),
521
511
},
522
- 1 ,
512
+ 2 ,
523
513
},
524
514
{
525
- or2 (
526
- and (isNull (x ), lte2 (y , 5 )),
527
- ),
515
+ and (isNull (x ), lte2 (y , 5 )),
528
516
sql.MySQLRangeCollection {
529
517
r (null2 (), rlte (5 )),
530
518
},
531
- 1 ,
519
+ 2 ,
532
520
},
533
521
{
534
- or2 (
535
- and2 (isNull (x ), eq2 (y , 1 )),
536
- ),
522
+ and2 (isNull (x ), eq2 (y , 1 )),
537
523
sql.MySQLRangeCollection {
538
524
r (null2 (), req (1 )),
539
525
},
540
- 1 ,
526
+ 2 ,
541
527
},
542
528
}
543
529
@@ -590,8 +576,6 @@ func TestRangeBuilder(t *testing.T) {
590
576
require .NoError (t , err )
591
577
592
578
include := c .bestFilters
593
- // most tests are designed so that all filters are supported
594
- // |included| = |root.id|
595
579
require .Equal (t , tt .cnt , include .Len ())
596
580
if tt .cnt == 1 {
597
581
require .True (t , include .Contains (1 ))
0 commit comments