Skip to content

Commit 9d4a00b

Browse files
committed
fix: test case strides
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent cc9ec13 commit 9d4a00b

File tree

1 file changed

+8
-8
lines changed
  • lib/node_modules/@stdlib/ndarray/base/some/test

1 file changed

+8
-8
lines changed

lib/node_modules/@stdlib/ndarray/base/some/test/test.nd.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ tape( 'the function tests whether at least `n` elements in an n-dimensional ndar
215215

216216
dt = 'float64';
217217
ord = 'row-major';
218-
sh = [ 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2 ];
219-
st = [ 16, 16, 16, 16, 16, 16, 8, -8, 4, 4, 2 ];
218+
sh = [ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
219+
st = [ 16, 16, 16, 16, 16, 16, 16, 16, -8, -4, -2, 1 ];
220220
o = strides2offset( sh, st );
221221

222222
x = ndarray( dt, zeros( numel( sh )*2, dt ), sh, st, o, ord );
@@ -353,8 +353,8 @@ tape( 'the function tests whether at least `n` elements in an n-dimensional ndar
353353

354354
dt = 'complex128';
355355
ord = 'row-major';
356-
sh = [ 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2 ];
357-
st = [ 16, 16, 16, 16, 16, 16, -8, 8, 4, 4, 2 ];
356+
sh = [ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
357+
st = [ 16, 16, 16, 16, 16, 16, -16, 16, -8, -4, -2, 1 ];
358358
o = strides2offset( sh, st );
359359

360360
xbuf = zeros( numel( sh )*4, 'float64' );
@@ -550,8 +550,8 @@ tape( 'the function tests whether at least `n` elements in an n-dimensional ndar
550550

551551
dt = 'float64';
552552
ord = 'column-major';
553-
sh = [ 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1 ];
554-
st = [ -2, 4, 4, 8, 8, 16, 16, 16, 16, 16, 16 ];
553+
sh = [ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
554+
st = [ 1, 1, 1, 1, 1, 1, 1, 1, -1, -4, 8, -8 ];
555555
o = strides2offset( sh, st );
556556

557557
x = ndarray( dt, zeros( numel( sh )*2, dt ), sh, st, o, ord );
@@ -688,8 +688,8 @@ tape( 'the function tests whether at least `n` elements in an n-dimensional ndar
688688

689689
dt = 'complex128';
690690
ord = 'column-major';
691-
sh = [ 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1 ];
692-
st = [ -2, 4, 4, 8, 8, 16, 16, 16, 16, 16, 16 ];
691+
sh = [ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2 ];
692+
st = [ 1, 1, 1, 1, -1, 1, -1, 1, 1, -4, -8, 8 ];
693693
o = strides2offset( sh, st );
694694

695695
xbuf = zeros( numel( sh )*4, 'float64' );

0 commit comments

Comments
 (0)