Skip to content

Commit 8063ac4

Browse files
kgryteMeKaustubh07
authored andcommitted
test: fix underlying buffer type
--- 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: passed - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 85572f0 commit 8063ac4

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

lib/node_modules/@stdlib/ndarray/some-by/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ var x = array( [ [ [ 1.0, 2.0 ] ], [ [ 3.0, 4.0 ] ], [ [ 0.0, 6.0 ] ] ] );
5555
var out = someBy( x, 2, predicate );
5656
// returns <ndarray>
5757

58-
console.log( out.get() );
59-
// => true
58+
var v = out.get();
59+
// returns true
6060
```
6161

6262
The function accepts the following arguments:

lib/node_modules/@stdlib/ndarray/some-by/test/test.assign.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
var tape = require( 'tape' );
2424
var Float64Array = require( '@stdlib/array/float64' );
25+
var Float32Array = require( '@stdlib/array/float32' );
2526
var ndarray = require( '@stdlib/ndarray/ctor' );
2627
var empty = require( '@stdlib/ndarray/empty' );
2728
var ndarray2array = require( '@stdlib/ndarray/to-array' );
@@ -504,7 +505,7 @@ tape( 'the function throws an error if provided a second argument which is an nd
504505

505506
values = [
506507
new ndarray( 'float64', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' ),
507-
new ndarray( 'float32', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
508+
new ndarray( 'float32', new Float32Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
508509
];
509510

510511
for ( i = 0; i < values.length; i++ ) {
@@ -534,7 +535,7 @@ tape( 'the function throws an error if provided a second argument which is an nd
534535

535536
values = [
536537
new ndarray( 'float64', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' ),
537-
new ndarray( 'float32', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
538+
new ndarray( 'float32', new Float32Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
538539
];
539540

540541
for ( i = 0; i < values.length; i++ ) {
@@ -564,7 +565,7 @@ tape( 'the function throws an error if provided a second argument which is an nd
564565

565566
values = [
566567
new ndarray( 'float64', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' ),
567-
new ndarray( 'float32', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
568+
new ndarray( 'float32', new Float32Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
568569
];
569570

570571
for ( i = 0; i < values.length; i++ ) {
@@ -594,7 +595,7 @@ tape( 'the function throws an error if provided a second argument which is an nd
594595

595596
values = [
596597
new ndarray( 'float64', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' ),
597-
new ndarray( 'float32', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
598+
new ndarray( 'float32', new Float32Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
598599
];
599600

600601
for ( i = 0; i < values.length; i++ ) {

lib/node_modules/@stdlib/ndarray/some-by/test/test.main.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
var tape = require( 'tape' );
2424
var isndarrayLike = require( '@stdlib/assert/is-ndarray-like' );
2525
var Float64Array = require( '@stdlib/array/float64' );
26+
var Float32Array = require( '@stdlib/array/float32' );
2627
var ndarray = require( '@stdlib/ndarray/ctor' );
2728
var empty = require( '@stdlib/ndarray/empty' );
2829
var ndarray2array = require( '@stdlib/ndarray/to-array' );
@@ -447,7 +448,7 @@ tape( 'the function throws an error if provided a second argument which is an nd
447448

448449
values = [
449450
new ndarray( 'float64', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' ),
450-
new ndarray( 'float32', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
451+
new ndarray( 'float32', new Float32Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
451452
];
452453

453454
for ( i = 0; i < values.length; i++ ) {
@@ -473,7 +474,7 @@ tape( 'the function throws an error if provided a second argument which is an nd
473474

474475
values = [
475476
new ndarray( 'float64', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' ),
476-
new ndarray( 'float32', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
477+
new ndarray( 'float32', new Float32Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
477478
];
478479

479480
for ( i = 0; i < values.length; i++ ) {
@@ -499,7 +500,7 @@ tape( 'the function throws an error if provided a second argument which is an nd
499500

500501
values = [
501502
new ndarray( 'float64', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' ),
502-
new ndarray( 'float32', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
503+
new ndarray( 'float32', new Float32Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
503504
];
504505

505506
for ( i = 0; i < values.length; i++ ) {
@@ -525,7 +526,7 @@ tape( 'the function throws an error if provided a second argument which is an nd
525526

526527
values = [
527528
new ndarray( 'float64', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' ),
528-
new ndarray( 'float32', new Float64Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
529+
new ndarray( 'float32', new Float32Array( [ 1 ] ), [ 1 ], [ 1 ], 0, 'row-major' )
529530
];
530531

531532
for ( i = 0; i < values.length; i++ ) {

0 commit comments

Comments
 (0)