@@ -460,7 +460,6 @@ test('intersection will not simplify when two intervals are touching', t => {
460
460
testFnToIntervals ( r2 , r1 , intersect , testOutputFn , t ) ;
461
461
} ) ;
462
462
463
-
464
463
test ( 'intersection will keep object properties' , t => {
465
464
const r1 = [ { start : 1 , end : 5 , test : 'foo' } ] ;
466
465
const r2 = [ { start : 1 , end : 2 , test : 'bar' } , { start : 2 , end : 5 , test : 'baz' } ] ;
@@ -496,7 +495,6 @@ test('will split empty interval', t => {
496
495
t . is ( res . length , 0 ) ;
497
496
} ) ;
498
497
499
-
500
498
test ( 'will not split when no indexes' , t => {
501
499
const r1 = [ { start : 0 , end : 7 , test : 'foo' } ] ;
502
500
const r2 : number [ ] = [ ] ;
@@ -506,11 +504,11 @@ test('will not split when no indexes', t => {
506
504
} ) ;
507
505
508
506
test ( 'will not split when no intersection' , t => {
509
- const r1 = [ { start : 0 , end : 7 , test : 'foo' } , { start : 8 , end : 10 } ] ;
507
+ const r1 = [ { start : 0 , end : 7 , test : 'foo' } , { start : 8 , end : 10 , test : 'bar' } ] ;
510
508
const r2 = [ 9 ] ;
511
509
const res = split ( r2 , r1 ) ;
512
510
t . is ( res . length , 3 ) ;
513
511
testInterval ( t , res [ 0 ] , [ 0 , 7 ] , { test : 'foo' } ) ;
514
- testInterval ( t , res [ 1 ] , [ 8 , 9 ] ) ;
515
- testInterval ( t , res [ 2 ] , [ 9 , 10 ] ) ;
512
+ testInterval ( t , res [ 1 ] , [ 8 , 9 ] , { test : 'bar' } ) ;
513
+ testInterval ( t , res [ 2 ] , [ 9 , 10 ] , { test : 'bar' } ) ;
516
514
} ) ;
0 commit comments