Skip to content

Commit c1805ef

Browse files
committed
test: fix broken tests
--- 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 7ac3d7d commit c1805ef

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/ndarray/for-each/test

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/ndarray/for-each/test/test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,14 @@ tape( 'the function applies a callback to each indexed element in the input ndar
193193

194194
forEach( x, scale );
195195
expected = ones( x.length*2, dt );
196-
dfill.ndarray( x.length, 100.0, expected, st[2], expected.length/2 );
196+
dfill.ndarray( x.length, 100.0, expected, st[2], 0 );
197197

198198
t.strictEqual( isSameFloat64Array( x.data, expected ), true, 'returns expected value' );
199199

200200
t.end();
201201

202202
function scale( v, i ) {
203-
x.set( i[0], i[1], i[2], v*10.0 );
203+
x.set( i[0], i[1], i[2], v*100.0 );
204204
}
205205
});
206206

@@ -226,14 +226,14 @@ tape( 'the function applies a callback to each indexed element in the input ndar
226226

227227
forEach( x, scale );
228228
expected = ones( x.length*2, dt );
229-
dfill.ndarray( x.length, 100.0, expected, st[0], expected.length/2 );
229+
dfill.ndarray( x.length, 100.0, expected, st[0], 0 );
230230

231231
t.strictEqual( isSameFloat64Array( x.data, expected ), true, 'returns expected value' );
232232

233233
t.end();
234234

235235
function scale( v, i ) {
236-
x.set( i[0], i[1], i[2], v*10.0 );
236+
x.set( i[0], i[1], i[2], v*100.0 );
237237
}
238238
});
239239

0 commit comments

Comments
 (0)