@@ -360,25 +360,25 @@ tape( 'the function copies elements to another array and sets an element at a sp
360
360
var out ;
361
361
var x ;
362
362
363
- x = new BooleanArray ( [ 0 , 0 , 0 , 0 ] ) ;
363
+ x = new BooleanArray ( [ 0 , 0 , 1 , 1 ] ) ;
364
364
365
365
out = new BooleanArray ( x . length ) ;
366
- expected = new BooleanArray ( [ 1 , 0 , 0 , 0 ] ) ;
366
+ expected = new BooleanArray ( [ 1 , 0 , 1 , 1 ] ) ;
367
367
actual = arrayWith ( x , 0 , true , out , 1 , 0 ) ;
368
368
369
369
t . strictEqual ( actual , out , 'returns expected value' ) ;
370
370
t . strictEqual ( isSameBooleanArray ( actual , expected ) , true , 'returns expected value' ) ;
371
371
372
372
out = new BooleanArray ( x . length * 2 ) ;
373
- expected = new BooleanArray ( [ 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 ] ) ;
373
+ expected = new BooleanArray ( [ 0 , 0 , 1 , 0 , 1 , 0 , 1 , 0 ] ) ;
374
374
actual = arrayWith ( x , 1 , true , out , 2 , 0 ) ;
375
375
376
376
t . strictEqual ( actual , out , 'returns expected value' ) ;
377
377
t . strictEqual ( isSameBooleanArray ( actual , expected ) , true , 'returns expected value' ) ;
378
378
379
379
out = new BooleanArray ( x . length * 2 ) ;
380
- expected = new BooleanArray ( [ 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 ] ) ;
381
- actual = arrayWith ( x , 2 , true , out , - 2 , out . length - 1 ) ;
380
+ expected = new BooleanArray ( [ 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 ] ) ;
381
+ actual = arrayWith ( x , 2 , false , out , - 2 , out . length - 1 ) ;
382
382
383
383
t . strictEqual ( actual , out , 'returns expected value' ) ;
384
384
t . strictEqual ( isSameBooleanArray ( actual , expected ) , true , 'returns expected value' ) ;
0 commit comments