Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jan 21, 2024
1 parent 905cbbd commit 807daa3
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions base/at2d/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
// MODULES //

var tape = require( 'tape' );
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var nCartesianProduct = require( './../../../base/n-cartesian-product' );
var filled2dBy = require( './../../../base/filled2d-by' );
var flatten2d = require( './../../../base/flatten2d' );
var incrspace = require( './../../../base/incrspace' );
var at2d = require( './../lib' );
Expand All @@ -46,10 +48,7 @@ tape( 'the function returns a nested array element (positive indices)', function
var i;

shape = [ 2, 2 ];
x = [
[ 1, 2 ],
[ 3, 4 ]
];
x = filled2dBy( shape, discreteUniform( 0, 10 ) );

i0 = incrspace( 0, shape[0], 1 );
i1 = incrspace( 0, shape[1], 1 );
Expand All @@ -75,10 +74,7 @@ tape( 'the function returns a nested array element (negative indices)', function
var i;

shape = [ 2, 2 ];
x = [
[ 1, 2 ],
[ 3, 4 ]
];
x = filled2dBy( shape, discreteUniform( 0, 10 ) );

i0 = incrspace( -shape[0], 0, 1 );
i1 = incrspace( -shape[1], 0, 1 );
Expand All @@ -104,10 +100,7 @@ tape( 'the function returns `undefined` if provided an out-of-bounds index (posi
var i;

shape = [ 2, 2 ];
x = [
[ 1, 2 ],
[ 3, 4 ]
];
x = filled2dBy( shape, discreteUniform( 0, 10 ) );

i0 = incrspace( shape[0], shape[0]+10, 1 );
i1 = incrspace( shape[1], shape[1]+10, 1 );
Expand All @@ -133,10 +126,7 @@ tape( 'the function returns `undefined` if provided an out-of-bounds index (nega
var i;

shape = [ 2, 2 ];
x = [
[ 1, 2 ],
[ 3, 4 ]
];
x = filled2dBy( shape, discreteUniform( 0, 10 ) );

i0 = incrspace( -shape[0]-10, -shape[0], 1 );
i1 = incrspace( -shape[1]-10, -shape[1], 1 );
Expand Down

0 comments on commit 807daa3

Please sign in to comment.