Skip to content

Commit 52ded38

Browse files
committed
test: fix incorrect offsets
--- 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 643b8da commit 52ded38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/blas/ext/base/gfind-index/test/test.ndarray.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ tape( 'the function returns the index of the first element which passes a test i
4545
x = [ 1.0, 1.0, 2.0, 3.0, 2.0, 3.0 ];
4646

4747
// Nonnegative stride...
48-
actual = gfindIndex( x.length, x, 1, 3, clbk );
48+
actual = gfindIndex( 3, x, 1, 3, clbk );
4949
t.strictEqual( actual, 1, 'returns expected value' );
5050

5151
// Negative stride...
52-
actual = gfindIndex( x.length, x, -1, 3, clbk );
52+
actual = gfindIndex( 3, x, -1, 3, clbk );
5353
t.strictEqual( actual, 1, 'returns expected value' );
5454

5555
t.end();
@@ -66,11 +66,11 @@ tape( 'the function returns the index of the first element which passes a test i
6666
x = toAccessorArray( [ 1.0, 1.0, 2.0, 3.0, 2.0, 3.0 ] );
6767

6868
// Nonnegative stride...
69-
actual = gfindIndex( x.length, x, 1, 3, clbk );
69+
actual = gfindIndex( 3, x, 1, 3, clbk );
7070
t.strictEqual( actual, 1, 'returns expected value' );
7171

7272
// Negative stride...
73-
actual = gfindIndex( x.length, x, -1, 3, clbk );
73+
actual = gfindIndex( 3, x, -1, 3, clbk );
7474
t.strictEqual( actual, 1, 'returns expected value' );
7575

7676
t.end();

0 commit comments

Comments
 (0)