Skip to content

Commit 479c50a

Browse files
committed
test: fix type bug
--- 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: na - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent c1b6794 commit 479c50a

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/random/array/tools/unary/docs/types

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/random/array/tools/unary/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ import Random = require( './index' );
211211
// The function returns an instance having an `assign` method which returns an array...
212212
{
213213
const dtypes: Array<DataType> = [ 'float64', 'float32' ];
214-
const x = zeros( 10, dtypes[ 0 ] );
214+
const x = zeros( 10, 'float64' );
215215

216216
const r1 = new Random<number, number>( exponential, dtypes, dtypes[ 0 ] );
217217
r1.assign( 2.0, x ); // $ExpectType OutputArray<number>
@@ -239,7 +239,7 @@ import Random = require( './index' );
239239
// The compiler throws an error if the `assign` method is provided an unsupported number of arguments...
240240
{
241241
const dtypes: Array<DataType> = [ 'float64', 'float32' ];
242-
const x = zeros( 10, dtypes[ 0 ] );
242+
const x = zeros( 10, 'float64' );
243243

244244
const r1 = new Random<number, number>( exponential, dtypes, dtypes[ 0 ] );
245245
r1.assign(); // $ExpectError

0 commit comments

Comments
 (0)