Skip to content

Commit 4e32e97

Browse files
committed
chore: fix test cases
--- 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 399caca commit 4e32e97

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

lib/node_modules/@stdlib/blas/base/wasm/scnrm2/test/test.module.ndarray.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,18 @@ tape( 'a module instance has an `ndarray` method which supports a negative `stri
153153
xp = 0;
154154

155155
mod.write( xp, new Complex64Array([
156-
1.0, // 2
157-
2.0, // 2
156+
1.0,
158157
2.0,
159-
-7.0,
160-
-2.0, // 1
161-
3.0, // 1
162-
4.0,
163-
2.0
158+
2.0, // 2
159+
-7.0, // 2
160+
-2.0,
161+
3.0,
162+
4.0, // 1
163+
2.0 // 1
164164
]));
165165

166166
nrm2 = mod.ndarray( 2, xp, -2, 3 );
167-
isApprox( t, nrm2, 4.24264068711, 1.0 );
167+
isApprox( t, nrm2, 8.544003745317, 1.0 );
168168

169169
t.end();
170170
});

lib/node_modules/@stdlib/blas/base/wasm/scnrm2/test/test.ndarray.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ tape( 'the `ndarray` method supports a negative stride parameter', function test
111111
var x;
112112

113113
x = new Complex64Array([
114+
1.0,
115+
2.0,
114116
2.0, // 2
115117
-7.0, // 2
116118
-2.0,
@@ -119,7 +121,7 @@ tape( 'the `ndarray` method supports a negative stride parameter', function test
119121
2.0 // 1
120122
]);
121123

122-
nrm2 = scnrm2.ndarray( 2, x, -2, x.length-2 );
124+
nrm2 = scnrm2.ndarray( 2, x, -2, x.length-1);
123125
isApprox( t, nrm2, 8.544003745317, 1.0 );
124126

125127
t.end();

0 commit comments

Comments
 (0)