Skip to content

Commit 68586da

Browse files
committed
chore: update 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 1d7b696 commit 68586da

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

lib/node_modules/@stdlib/blas/base/wasm/zscal/test/test.main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ tape( 'the `main` method supports specifying a `zx` stride', function test( t )
146146
7.0,
147147
2.0
148148
]);
149-
isApprox( t, viewX, expected, 1.0 );
149+
isApprox( t, viewX, expected, 3.0 );
150150

151151
t.end();
152152
});
@@ -190,7 +190,7 @@ tape( 'the `main` method supports specifying a negative `zx` stride', function t
190190
7.0,
191191
2.0
192192
]);
193-
isApprox( t, viewX, expected, 1.0 );
193+
isApprox( t, viewX, expected, 3.0 );
194194

195195
t.end();
196196
});

lib/node_modules/@stdlib/blas/base/wasm/zscal/test/test.module.main.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ tape( 'a module instance has a `main` method which scales elements from `zx` by
9696
mod.initializeSync();
9797

9898
zxp = 0;
99-
zap = 24;
99+
zap = 48;
100100

101101
mod.write( zxp, new Complex128Array( [ 0.3, 0.1, 0.5, 0.0, 0.0, 0.5 ] ) );
102102
mod.write( zap, new Float64Array( [ 0.4, -0.7 ] ) );
@@ -131,7 +131,7 @@ tape( 'a module instance has a `main` method which supports specifying a `zx` st
131131
mod.initializeSync();
132132

133133
zxp = 0;
134-
zap = 48;
134+
zap = 96;
135135

136136
xbuf = new Float64Array([
137137
0.1, // 1
@@ -172,7 +172,7 @@ tape( 'a module instance has a `main` method which supports specifying a `zx` st
172172
actualX = new Complex128Array( 6 );
173173
mod.read( zxp, actualX );
174174
viewX = new Float64Array( actualX.buffer );
175-
isApprox( t, viewX, zxe, 1.0 );
175+
isApprox( t, viewX, zxe, 3.0 );
176176

177177
t.end();
178178
});
@@ -195,7 +195,7 @@ tape( 'a module instance has a `main` method which supports specifying a negativ
195195
mod.initializeSync();
196196

197197
zxp = 0;
198-
zap = 48;
198+
zap = 96;
199199

200200
xbuf = new Float64Array([
201201
0.1, // 3
@@ -236,7 +236,7 @@ tape( 'a module instance has a `main` method which supports specifying a negativ
236236
actualX = new Complex128Array( 6 );
237237
mod.read( zxp, actualX );
238238
viewX = new Float64Array( actualX.buffer );
239-
isApprox( t, viewX, zxe, 1.0 );
239+
isApprox( t, viewX, zxe, 3.0 );
240240

241241
t.end();
242242
});
@@ -255,7 +255,7 @@ tape( 'a module instance has a `main` method which returns a reference to the in
255255
mod.initializeSync();
256256

257257
zxp = 0;
258-
zap = 24;
258+
zap = 48;
259259

260260
mod.write( zxp, new Complex128Array( [ 0.3, 0.1, 0.5, 0.0, 0.0, 0.5 ] ) );
261261
mod.write( zap, new Float64Array( [ 0.4, -0.7 ] ) );
@@ -280,7 +280,7 @@ tape( 'if provided an `N` parameter less than or equal to `0`, a module instance
280280
mod.initializeSync();
281281

282282
zxp = 0;
283-
zap = 24;
283+
zap = 48;
284284

285285
mod.write( zxp, new Complex128Array( [ 0.3, 0.1, 0.5, 0.0, 0.0, 0.5 ] ) );
286286
mod.write( zap, new Float64Array( [ 0.4, -0.7 ] ) );

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ tape( 'a module instance has an `ndarray` method which scales elements from `zx`
9696
mod.initializeSync();
9797

9898
zxp = 0;
99-
zap = 24;
99+
zap = 48;
100100

101101
mod.write( zxp, new Complex128Array( [ 0.3, 0.1, 0.5, 0.0, 0.0, 0.5 ] ) );
102102
mod.write( zap, new Float64Array( [ 0.4, -0.7 ] ) );
@@ -131,7 +131,7 @@ tape( 'a module instance has an `ndarray` method which supports a `zx` stride',
131131
mod.initializeSync();
132132

133133
zxp = 0;
134-
zap = 48;
134+
zap = 96;
135135

136136
xbuf = new Float64Array([
137137
0.1, // 1
@@ -172,7 +172,7 @@ tape( 'a module instance has an `ndarray` method which supports a `zx` stride',
172172
actualX = new Complex128Array( 6 );
173173
mod.read( zxp, actualX );
174174
viewX = new Float64Array( actualX.buffer );
175-
isApprox( t, viewX, zxe, 1.0 );
175+
isApprox( t, viewX, zxe, 3.0 );
176176

177177
t.end();
178178
});
@@ -195,7 +195,7 @@ tape( 'a module instance has an `ndarray` method which supports a negative `zx`
195195
mod.initializeSync();
196196

197197
zxp = 0;
198-
zap = 48;
198+
zap = 96;
199199

200200
xbuf = new Float64Array([
201201
0.1, // 3
@@ -236,7 +236,7 @@ tape( 'a module instance has an `ndarray` method which supports a negative `zx`
236236
actualX = new Complex128Array( 6 );
237237
mod.read( zxp, actualX );
238238
viewX = new Float64Array( actualX.buffer );
239-
isApprox( t, viewX, zxe, 1.0 );
239+
isApprox( t, viewX, zxe, 3.0 );
240240

241241
t.end();
242242
});
@@ -259,7 +259,7 @@ tape( 'a module instance has an `ndarray` method which supports a `zx` offset',
259259
mod.initializeSync();
260260

261261
zxp = 0;
262-
zap = 48;
262+
zap = 96;
263263

264264
xbuf = new Float64Array([
265265
0.1,
@@ -376,7 +376,7 @@ tape( 'a module instance has an `ndarray` method which supports complex access p
376376
mod.initializeSync();
377377

378378
zxp = 0;
379-
zap = 48;
379+
zap = 96;
380380

381381
xbuf = new Float64Array([
382382
0.1,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ tape( 'the `ndarray` method supports specifying a `zx` stride', function test( t
154154
7.0,
155155
2.0
156156
]);
157-
isApprox( t, viewX, expected, 1.0 );
157+
isApprox( t, viewX, expected, 3.0 );
158158

159159
t.end();
160160
});
@@ -198,7 +198,7 @@ tape( 'the `ndarray` method supports specifying a negative `zx` stride', functio
198198
7.0,
199199
2.0
200200
]);
201-
isApprox( t, viewX, expected, 1.0 );
201+
isApprox( t, viewX, expected, 3.0 );
202202

203203
t.end();
204204
});
@@ -242,7 +242,7 @@ tape( 'the `ndarray` method supports a `zx` offset', function test( t ) {
242242
4.2, // 3
243243
-4.1 // 3
244244
]);
245-
isApprox( t, viewX, expected, 5.0 );
245+
isApprox( t, viewX, expected, 7.0 );
246246

247247
t.end();
248248
});
@@ -325,7 +325,7 @@ tape( 'the `ndarray` method supports complex access patterns', function test( t
325325
2.9, // 2
326326
-0.2 // 2
327327
]);
328-
isApprox( t, viewX, expected, 5.0 );
328+
isApprox( t, viewX, expected, 7.0 );
329329

330330
t.end();
331331
});

0 commit comments

Comments
 (0)