Skip to content

Commit 6c76e49

Browse files
committed
test: refactor sample values
1 parent 921a9fe commit 6c76e49

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/node_modules/@stdlib/array/base/with/test/test.assign.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,25 +360,25 @@ tape( 'the function copies elements to another array and sets an element at a sp
360360
var out;
361361
var x;
362362

363-
x = new BooleanArray( [ 0, 0, 0, 0 ] );
363+
x = new BooleanArray( [ 0, 0, 1, 1 ] );
364364

365365
out = new BooleanArray( x.length );
366-
expected = new BooleanArray( [ 1, 0, 0, 0 ] );
366+
expected = new BooleanArray( [ 1, 0, 1, 1 ] );
367367
actual = arrayWith( x, 0, true, out, 1, 0 );
368368

369369
t.strictEqual( actual, out, 'returns expected value' );
370370
t.strictEqual( isSameBooleanArray( actual, expected ), true, 'returns expected value' );
371371

372372
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 ] );
374374
actual = arrayWith( x, 1, true, out, 2, 0 );
375375

376376
t.strictEqual( actual, out, 'returns expected value' );
377377
t.strictEqual( isSameBooleanArray( actual, expected ), true, 'returns expected value' );
378378

379379
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 );
382382

383383
t.strictEqual( actual, out, 'returns expected value' );
384384
t.strictEqual( isSameBooleanArray( actual, expected ), true, 'returns expected value' );

0 commit comments

Comments
 (0)