From b6c809fadf1b8292d01848eb4908e1427e994a61 Mon Sep 17 00:00:00 2001 From: Arushi Tripathi Date: Tue, 19 May 2026 23:20:18 +0530 Subject: [PATCH] Fix test for empty array return in non-strict mode Update test case for non-strict mode to handle ending index exceeding array bounds. Signed-off-by: Arushi Tripathi --- lib/node_modules/@stdlib/ndarray/slice-to/test/test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/slice-to/test/test.js b/lib/node_modules/@stdlib/ndarray/slice-to/test/test.js index e8821402b0f2..4846c56acee3 100644 --- a/lib/node_modules/@stdlib/ndarray/slice-to/test/test.js +++ b/lib/node_modules/@stdlib/ndarray/slice-to/test/test.js @@ -626,7 +626,7 @@ tape( 'in strict mode, the function throws an error when a stopping index exceed }; } }); - + tape( 'in non-strict mode, the function returns an empty array when an ending index exceeds array bounds', function test( t ) { var actual; var values; @@ -639,9 +639,9 @@ tape( 'in non-strict mode, the function returns an empty array when an ending in zeros( [ 1, 1, 1 ], { 'dtype': 'int32' } ), zeros( [ 1, 1, 1, 1 ], { 'dtype': 'uint32' } ), zeros( [ 1, 1, 1, 1, 1 ], { 'dtype': 'complex128' } ) - ]; - - stop = [ + ]; + + stop = [ [ -10 ], [ null, -20 ], [ -20, null, null ],