diff --git a/base/at2d/test/test.js b/base/at2d/test/test.js index d63d8341..70df3eb9 100644 --- a/base/at2d/test/test.js +++ b/base/at2d/test/test.js @@ -102,7 +102,7 @@ tape( 'the function returns `undefined` if provided an out-of-bounds index (posi shape = [ 5, 5 ]; x = filled2dBy( shape, discreteUniform( 0, 10 ) ); - i0 = incrspace( shape[0], shape[0]+10, 1 ); + i0 = incrspace( 0, shape[0]+10, 1 ); i1 = incrspace( shape[1], shape[1]+10, 1 ); indices = nCartesianProduct( i0, i1 ); @@ -128,7 +128,7 @@ tape( 'the function returns `undefined` if provided an out-of-bounds index (nega shape = [ 5, 5 ]; x = filled2dBy( shape, discreteUniform( 0, 10 ) ); - i0 = incrspace( -shape[0]-10, -shape[0], 1 ); + i0 = incrspace( -shape[0]-10, 0, 1 ); i1 = incrspace( -shape[1]-10, -shape[1], 1 ); indices = nCartesianProduct( i0, i1 ); diff --git a/base/at3d/test/test.js b/base/at3d/test/test.js index 60791ab3..a3a23bc8 100644 --- a/base/at3d/test/test.js +++ b/base/at3d/test/test.js @@ -107,8 +107,8 @@ tape( 'the function returns `undefined` if provided an out-of-bounds index (posi shape = [ 3, 3, 3 ]; x = filled3dBy( shape, discreteUniform( 0, 10 ) ); - i0 = incrspace( shape[0], shape[0]+10, 1 ); - i1 = incrspace( shape[1], shape[1]+10, 1 ); + i0 = incrspace( 0, shape[0]+10, 1 ); + i1 = incrspace( 0, shape[1]+10, 1 ); i2 = incrspace( shape[2], shape[2]+10, 1 ); indices = nCartesianProduct( i0, i1, i2 ); @@ -135,8 +135,8 @@ tape( 'the function returns `undefined` if provided an out-of-bounds index (nega shape = [ 3, 3, 3 ]; x = filled3dBy( shape, discreteUniform( 0, 10 ) ); - i0 = incrspace( -shape[0]-10, -shape[0], 1 ); - i1 = incrspace( -shape[1]-10, -shape[1], 1 ); + i0 = incrspace( -shape[0]-10, 0, 1 ); + i1 = incrspace( -shape[1]-10, 0, 1 ); i2 = incrspace( -shape[2]-10, -shape[2], 1 ); indices = nCartesianProduct( i0, i1, i2 );