Skip to content

Commit 08c640b

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 479c50a commit 08c640b

File tree

3 files changed

+6
-6
lines changed
  • lib/node_modules/@stdlib/random/array/tools

3 files changed

+6
-6
lines changed

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

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

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

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

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

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

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

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

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

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

218218
const r1 = new Random<number, number, number, number>( triangular, dtypes, dtypes[ 0 ] );
219219
r1.assign( 2.0, 5.0, 3.33, x ); // $ExpectType OutputArray<number>
@@ -241,7 +241,7 @@ import Random = require( './index' );
241241
// The compiler throws an error if the `assign` method is provided an unsupported number of arguments...
242242
{
243243
const dtypes: Array<DataType> = [ 'float64', 'float32' ];
244-
const x = zeros( 10, dtypes[ 0 ] );
244+
const x = zeros( 10, 'float64' );
245245

246246
const r1 = new Random<number, number, number, number>( triangular, dtypes, dtypes[ 0 ] );
247247
r1.assign(); // $ExpectError

0 commit comments

Comments
 (0)