Skip to content

Commit

Permalink
test: refactor sample values
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Aug 17, 2024
1 parent 921a9fe commit 6c76e49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/array/base/with/test/test.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,25 +360,25 @@ tape( 'the function copies elements to another array and sets an element at a sp
var out;
var x;

x = new BooleanArray( [ 0, 0, 0, 0 ] );
x = new BooleanArray( [ 0, 0, 1, 1 ] );

out = new BooleanArray( x.length );
expected = new BooleanArray( [ 1, 0, 0, 0 ] );
expected = new BooleanArray( [ 1, 0, 1, 1 ] );
actual = arrayWith( x, 0, true, out, 1, 0 );

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

out = new BooleanArray( x.length*2 );
expected = new BooleanArray( [ 0, 0, 1, 0, 0, 0, 0, 0 ] );
expected = new BooleanArray( [ 0, 0, 1, 0, 1, 0, 1, 0 ] );
actual = arrayWith( x, 1, true, out, 2, 0 );

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

out = new BooleanArray( x.length*2 );
expected = new BooleanArray( [ 0, 0, 0, 1, 0, 0, 0, 0 ] );
actual = arrayWith( x, 2, true, out, -2, out.length-1 );
expected = new BooleanArray( [ 0, 1, 0, 0, 0, 0, 0, 0 ] );
actual = arrayWith( x, 2, false, out, -2, out.length-1 );

t.strictEqual( actual, out, 'returns expected value' );
t.strictEqual( isSameBooleanArray( actual, expected ), true, 'returns expected value' );
Expand Down

1 comment on commit 6c76e49

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
array/base/with $\color{green}383/383$
$\color{green}+100.00\%$
$\color{green}27/27$
$\color{green}+100.00\%$
$\color{green}6/6$
$\color{green}+100.00\%$
$\color{green}383/383$
$\color{green}+100.00\%$
array/base/without $\color{green}351/351$
$\color{green}+100.00\%$
$\color{green}33/33$
$\color{green}+100.00\%$
$\color{green}5/5$
$\color{green}+100.00\%$
$\color{green}351/351$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.