Skip to content

Commit a55bc6e

Browse files
committed
fix: suggested changes
--- 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: na - 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: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent 992b6fd commit a55bc6e

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

  • lib/node_modules/@stdlib/stats/base/ndarray/nanstdev/docs/types

lib/node_modules/@stdlib/stats/base/ndarray/nanstdev/docs/types/test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,38 +27,38 @@ import nanstdev = require( './index' );
2727

2828
// The function returns a number...
2929
{
30-
const x = zeros([10], {
30+
const x = zeros( [ 10 ], {
3131
'dtype': 'float64'
3232
});
33-
const correction = scalar2ndarray(1.0, {
33+
const correction = scalar2ndarray( 1.0, {
3434
'dtype': 'float64'
3535
});
3636

37-
nanstdev([x, correction]); // $ExpectType number
37+
nanstdev( [ x, correction ] ); // $ExpectType number
3838
}
3939

4040
// The compiler throws an error if the function is provided a first argument which is not an array of ndarrays...
4141
{
42-
nanstdev('10'); // $ExpectError
43-
nanstdev(10); // $ExpectError
44-
nanstdev(true); // $ExpectError
45-
nanstdev(false); // $ExpectError
46-
nanstdev(null); // $ExpectError
47-
nanstdev(undefined); // $ExpectError
48-
nanstdev([]); // $ExpectError
49-
nanstdev({}); // $ExpectError
50-
nanstdev((x: number): number => x); // $ExpectError
42+
nanstdev( '10' ); // $ExpectError
43+
nanstdev( 10 ); // $ExpectError
44+
nanstdev( true ); // $ExpectError
45+
nanstdev( false ); // $ExpectError
46+
nanstdev( null ); // $ExpectError
47+
nanstdev( undefined ); // $ExpectError
48+
nanstdev( [] ); // $ExpectError
49+
nanstdev( {} ); // $ExpectError
50+
nanstdev( ( x: number ): number => x ); // $ExpectError
5151
}
5252

5353
// The compiler throws an error if the function is provided an unsupported number of arguments...
5454
{
55-
const x = zeros([10], {
55+
const x = zeros( [ 10 ], {
5656
'dtype': 'float64'
5757
});
58-
const correction = scalar2ndarray(1.0, {
58+
const correction = scalar2ndarray( 1.0, {
5959
'dtype': 'float64'
6060
});
6161

6262
nanstdev(); // $ExpectError
63-
nanstdev([x, correction], 10); // $ExpectError
63+
nanstdev( [ x, correction ], 10 ); // $ExpectError
6464
}

0 commit comments

Comments
 (0)