Skip to content

Commit 14bab15

Browse files
committed
chore: fix tests, spacing, and comments
--- 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: passed - 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: passed - task: lint_license_headers status: passed ---
1 parent 72231a6 commit 14bab15

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

lib/node_modules/@stdlib/blas/base/wasm/drotm/docs/types/test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -423,14 +423,14 @@ import drotm = require( './index' );
423423
});
424424
const mod = drotm.Module( mem );
425425

426-
mod.main( 10, 0, 1, 80, 1, '10'); // $ExpectError
427-
mod.main( 10, 0, 1, 80, 1, true); // $ExpectError
428-
mod.main( 10, 0, 1, 80, 1, false); // $ExpectError
429-
mod.main( 10, 0, 1, 80, 1, null); // $ExpectError
430-
mod.main( 10, 0, 1, 80, 1, undefined); // $ExpectError
431-
mod.main( 10, 0, 1, 80, 1, []); // $ExpectError
432-
mod.main( 10, 0, 1, 80, 1, {}); // $ExpectError
433-
mod.main( 10, 0, 1, 80, 1, ( x: number ): number => x); // $ExpectError
426+
mod.main( 10, 0, 1, 80, 1, '10' ); // $ExpectError
427+
mod.main( 10, 0, 1, 80, 1, true ); // $ExpectError
428+
mod.main( 10, 0, 1, 80, 1, false ); // $ExpectError
429+
mod.main( 10, 0, 1, 80, 1, null ); // $ExpectError
430+
mod.main( 10, 0, 1, 80, 1, undefined ); // $ExpectError
431+
mod.main( 10, 0, 1, 80, 1, [] ); // $ExpectError
432+
mod.main( 10, 0, 1, 80, 1, {} ); // $ExpectError
433+
mod.main( 10, 0, 1, 80, 1, ( x: number ): number => x ); // $ExpectError
434434
}
435435

436436
// The compiler throws an error if the `main` method of a module instance is provided an unsupported number of arguments...

lib/node_modules/@stdlib/blas/base/wasm/drotm/lib/module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ inherits( Module, WasmModule );
153153
* // Specify a vector length:
154154
* var N = 5;
155155
*
156-
* // Define pointers (i.e., byte offsets) for storing two vectors:
156+
* // Define pointers (i.e., byte offsets) for storing three vectors:
157157
* var xptr = 0;
158158
* var yptr = N * bytesPerElement( dtype );
159159
* var pptr = 2 * N * bytesPerElement( dtype );
@@ -227,7 +227,7 @@ setReadOnly( Module.prototype, 'main', function drotm( N, xptr, strideX, yptr, s
227227
* // Specify a vector length:
228228
* var N = 5;
229229
*
230-
* // Define pointers (i.e., byte offsets) for storing two vectors:
230+
* // Define pointers (i.e., byte offsets) for storing three vectors:
231231
* var xptr = 0;
232232
* var yptr = N * bytesPerElement( dtype );
233233
* var pptr = 2 * N * bytesPerElement( dtype );

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ tape( 'the `main` method applies a modified Givens plane rotation (sx=1, sy=1)',
8585

8686
xbuf = [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ];
8787
ybuf = [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ];
88-
param = [ 0.0, 0.0, 2.0, -3.0, 0.0 ];
88+
param = new Float64Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] );
8989

9090
xe = [
9191
new Float64Array( [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ),
@@ -127,7 +127,7 @@ tape( 'the `main` method applies a modified Givens plane rotation (sx=2, sy=-2)'
127127

128128
xbuf = [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ];
129129
ybuf = [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ];
130-
param = [ 1.0, 5.0, 2.0, 0.0, -4.0 ];
130+
param = new Float64Array( [ 1.0, 5.0, 2.0, 0.0, -4.0 ] );
131131

132132
xe = [
133133
new Float64Array( [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ),
@@ -169,7 +169,7 @@ tape( 'the `main` method applies a modified Givens plane rotation (sx=-2, sy=1)'
169169

170170
xbuf = [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ];
171171
ybuf = [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ];
172-
param = [ 0.0, 0.0, 2.0, -3.0, 0.0 ];
172+
param = new Float64Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] );
173173

174174
xe = [
175175
new Float64Array( [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ),
@@ -211,7 +211,7 @@ tape( 'the `main` method applies a plane rotation (sx=-1, sy=-2)', function test
211211

212212
xbuf = [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ];
213213
ybuf = [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ];
214-
param = [ 0.0, 0.0, 2.0, -3.0, 0.0 ];
214+
param = new Float64Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] );
215215

216216
xe = [
217217
new Float64Array( [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ),

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ tape( 'the `ndarray` method applies a modified Givens plane rotation (sx=1, sy=1
8888
xbuf = [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ];
8989
ybuf = [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ];
9090

91-
param = [ 0.0, 0.0, 2.0, -3.0, 0.0 ];
91+
param = new Float64Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] );
9292

9393
ox = [ 0, 0, 0, 0 ];
9494
oy = [ 0, 0, 0, 0 ];
@@ -136,7 +136,7 @@ tape( 'the `ndarray` method applies a modified Givens plane rotation (sx=2, sy=-
136136
xbuf = [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ];
137137
ybuf = [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ];
138138

139-
param = [ 1.0, 5.0, 2.0, 0.0, -4.0 ];
139+
param = new Float64Array( [ 1.0, 5.0, 2.0, 0.0, -4.0 ] );
140140

141141
ox = [ 0, 0, 0, 0 ];
142142
oy = [ 0, 0, 2, 6 ];
@@ -184,7 +184,7 @@ tape( 'the `ndarray` method applies a modified Givens plane rotation (sx=-2, sy=
184184
xbuf = [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ];
185185
ybuf = [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ];
186186

187-
param = [ 0.0, 0.0, 2.0, -3.0, 0.0 ];
187+
param = new Float64Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] );
188188

189189
ox = [ 0, 0, 2, 6 ];
190190
oy = [ 0, 0, 0, 0 ];
@@ -232,7 +232,7 @@ tape( 'the `ndarray` method applies a plane rotation (sx=-1, sy=-2)', function t
232232
xbuf = [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ];
233233
ybuf = [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ];
234234

235-
param = [ 0.0, 0.0, 2.0, -3.0, 0.0 ];
235+
param = new Float64Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] );
236236

237237
ox = [ 0, 0, 1, 3 ];
238238
oy = [ 0, 0, 2, 6 ];

0 commit comments

Comments
 (0)