Skip to content

Commit 54da286

Browse files
committed
test: use .strictEqual() instead of .equal() and fix lint errors
--- 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: 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: na - task: lint_license_headers status: passed ---
1 parent ecf1c08 commit 54da286

File tree

400 files changed

+7578
-7539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

400 files changed

+7578
-7539
lines changed

lib/node_modules/@stdlib/random/array/arcsine/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ tape( 'attached to the main export is a `factory` method', function test( t ) {
4444
});
4545

4646
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof random.PRNG, 'function', 'has property' );
47+
t.strictEqual( typeof random.PRNG, 'function', 'has property' );
4848
t.end();
4949
});
5050

5151
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( random.seed ), true, 'has property' );
52+
t.strictEqual( isUint32Array( random.seed ), true, 'has property' );
5353
t.end();
5454
});
5555

5656
tape( 'attached to the main export is the generator seed length', function test( t ) {
57-
t.equal( typeof random.seedLength, 'number', 'has property' );
57+
t.strictEqual( typeof random.seedLength, 'number', 'has property' );
5858
t.end();
5959
});
6060

6161
tape( 'attached to the main export is the generator state', function test( t ) {
62-
t.equal( isUint32Array( random.state ), true, 'has property' );
62+
t.strictEqual( isUint32Array( random.state ), true, 'has property' );
6363
t.end();
6464
});
6565

6666
tape( 'attached to the main export is the generator state length', function test( t ) {
67-
t.equal( typeof random.stateLength, 'number', 'has property' );
67+
t.strictEqual( typeof random.stateLength, 'number', 'has property' );
6868
t.end();
6969
});
7070

7171
tape( 'attached to the main export is the generator state size', function test( t ) {
72-
t.equal( typeof random.byteLength, 'number', 'has property' );
72+
t.strictEqual( typeof random.byteLength, 'number', 'has property' );
7373
t.end();
7474
});

lib/node_modules/@stdlib/random/array/bernoulli/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ tape( 'attached to the main export is a `factory` method', function test( t ) {
4444
});
4545

4646
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof random.PRNG, 'function', 'has property' );
47+
t.strictEqual( typeof random.PRNG, 'function', 'has property' );
4848
t.end();
4949
});
5050

5151
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( random.seed ), true, 'has property' );
52+
t.strictEqual( isUint32Array( random.seed ), true, 'has property' );
5353
t.end();
5454
});
5555

5656
tape( 'attached to the main export is the generator seed length', function test( t ) {
57-
t.equal( typeof random.seedLength, 'number', 'has property' );
57+
t.strictEqual( typeof random.seedLength, 'number', 'has property' );
5858
t.end();
5959
});
6060

6161
tape( 'attached to the main export is the generator state', function test( t ) {
62-
t.equal( isUint32Array( random.state ), true, 'has property' );
62+
t.strictEqual( isUint32Array( random.state ), true, 'has property' );
6363
t.end();
6464
});
6565

6666
tape( 'attached to the main export is the generator state length', function test( t ) {
67-
t.equal( typeof random.stateLength, 'number', 'has property' );
67+
t.strictEqual( typeof random.stateLength, 'number', 'has property' );
6868
t.end();
6969
});
7070

7171
tape( 'attached to the main export is the generator state size', function test( t ) {
72-
t.equal( typeof random.byteLength, 'number', 'has property' );
72+
t.strictEqual( typeof random.byteLength, 'number', 'has property' );
7373
t.end();
7474
});

lib/node_modules/@stdlib/random/array/beta/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ tape( 'attached to the main export is a `factory` method', function test( t ) {
4444
});
4545

4646
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof random.PRNG, 'function', 'has property' );
47+
t.strictEqual( typeof random.PRNG, 'function', 'has property' );
4848
t.end();
4949
});
5050

5151
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( random.seed ), true, 'has property' );
52+
t.strictEqual( isUint32Array( random.seed ), true, 'has property' );
5353
t.end();
5454
});
5555

5656
tape( 'attached to the main export is the generator seed length', function test( t ) {
57-
t.equal( typeof random.seedLength, 'number', 'has property' );
57+
t.strictEqual( typeof random.seedLength, 'number', 'has property' );
5858
t.end();
5959
});
6060

6161
tape( 'attached to the main export is the generator state', function test( t ) {
62-
t.equal( isUint32Array( random.state ), true, 'has property' );
62+
t.strictEqual( isUint32Array( random.state ), true, 'has property' );
6363
t.end();
6464
});
6565

6666
tape( 'attached to the main export is the generator state length', function test( t ) {
67-
t.equal( typeof random.stateLength, 'number', 'has property' );
67+
t.strictEqual( typeof random.stateLength, 'number', 'has property' );
6868
t.end();
6969
});
7070

7171
tape( 'attached to the main export is the generator state size', function test( t ) {
72-
t.equal( typeof random.byteLength, 'number', 'has property' );
72+
t.strictEqual( typeof random.byteLength, 'number', 'has property' );
7373
t.end();
7474
});

lib/node_modules/@stdlib/random/array/betaprime/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ tape( 'attached to the main export is a `factory` method', function test( t ) {
4444
});
4545

4646
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof random.PRNG, 'function', 'has property' );
47+
t.strictEqual( typeof random.PRNG, 'function', 'has property' );
4848
t.end();
4949
});
5050

5151
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( random.seed ), true, 'has property' );
52+
t.strictEqual( isUint32Array( random.seed ), true, 'has property' );
5353
t.end();
5454
});
5555

5656
tape( 'attached to the main export is the generator seed length', function test( t ) {
57-
t.equal( typeof random.seedLength, 'number', 'has property' );
57+
t.strictEqual( typeof random.seedLength, 'number', 'has property' );
5858
t.end();
5959
});
6060

6161
tape( 'attached to the main export is the generator state', function test( t ) {
62-
t.equal( isUint32Array( random.state ), true, 'has property' );
62+
t.strictEqual( isUint32Array( random.state ), true, 'has property' );
6363
t.end();
6464
});
6565

6666
tape( 'attached to the main export is the generator state length', function test( t ) {
67-
t.equal( typeof random.stateLength, 'number', 'has property' );
67+
t.strictEqual( typeof random.stateLength, 'number', 'has property' );
6868
t.end();
6969
});
7070

7171
tape( 'attached to the main export is the generator state size', function test( t ) {
72-
t.equal( typeof random.byteLength, 'number', 'has property' );
72+
t.strictEqual( typeof random.byteLength, 'number', 'has property' );
7373
t.end();
7474
});

lib/node_modules/@stdlib/random/array/binomial/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ tape( 'attached to the main export is a `factory` method', function test( t ) {
4444
});
4545

4646
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof random.PRNG, 'function', 'has property' );
47+
t.strictEqual( typeof random.PRNG, 'function', 'has property' );
4848
t.end();
4949
});
5050

5151
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( random.seed ), true, 'has property' );
52+
t.strictEqual( isUint32Array( random.seed ), true, 'has property' );
5353
t.end();
5454
});
5555

5656
tape( 'attached to the main export is the generator seed length', function test( t ) {
57-
t.equal( typeof random.seedLength, 'number', 'has property' );
57+
t.strictEqual( typeof random.seedLength, 'number', 'has property' );
5858
t.end();
5959
});
6060

6161
tape( 'attached to the main export is the generator state', function test( t ) {
62-
t.equal( isUint32Array( random.state ), true, 'has property' );
62+
t.strictEqual( isUint32Array( random.state ), true, 'has property' );
6363
t.end();
6464
});
6565

6666
tape( 'attached to the main export is the generator state length', function test( t ) {
67-
t.equal( typeof random.stateLength, 'number', 'has property' );
67+
t.strictEqual( typeof random.stateLength, 'number', 'has property' );
6868
t.end();
6969
});
7070

7171
tape( 'attached to the main export is the generator state size', function test( t ) {
72-
t.equal( typeof random.byteLength, 'number', 'has property' );
72+
t.strictEqual( typeof random.byteLength, 'number', 'has property' );
7373
t.end();
7474
});

lib/node_modules/@stdlib/random/array/cauchy/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ tape( 'attached to the main export is a `factory` method', function test( t ) {
4444
});
4545

4646
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof random.PRNG, 'function', 'has property' );
47+
t.strictEqual( typeof random.PRNG, 'function', 'has property' );
4848
t.end();
4949
});
5050

5151
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( random.seed ), true, 'has property' );
52+
t.strictEqual( isUint32Array( random.seed ), true, 'has property' );
5353
t.end();
5454
});
5555

5656
tape( 'attached to the main export is the generator seed length', function test( t ) {
57-
t.equal( typeof random.seedLength, 'number', 'has property' );
57+
t.strictEqual( typeof random.seedLength, 'number', 'has property' );
5858
t.end();
5959
});
6060

6161
tape( 'attached to the main export is the generator state', function test( t ) {
62-
t.equal( isUint32Array( random.state ), true, 'has property' );
62+
t.strictEqual( isUint32Array( random.state ), true, 'has property' );
6363
t.end();
6464
});
6565

6666
tape( 'attached to the main export is the generator state length', function test( t ) {
67-
t.equal( typeof random.stateLength, 'number', 'has property' );
67+
t.strictEqual( typeof random.stateLength, 'number', 'has property' );
6868
t.end();
6969
});
7070

7171
tape( 'attached to the main export is the generator state size', function test( t ) {
72-
t.equal( typeof random.byteLength, 'number', 'has property' );
72+
t.strictEqual( typeof random.byteLength, 'number', 'has property' );
7373
t.end();
7474
});

lib/node_modules/@stdlib/random/array/chi/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ tape( 'attached to the main export is a `factory` method', function test( t ) {
4444
});
4545

4646
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof random.PRNG, 'function', 'has property' );
47+
t.strictEqual( typeof random.PRNG, 'function', 'has property' );
4848
t.end();
4949
});
5050

5151
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( random.seed ), true, 'has property' );
52+
t.strictEqual( isUint32Array( random.seed ), true, 'has property' );
5353
t.end();
5454
});
5555

5656
tape( 'attached to the main export is the generator seed length', function test( t ) {
57-
t.equal( typeof random.seedLength, 'number', 'has property' );
57+
t.strictEqual( typeof random.seedLength, 'number', 'has property' );
5858
t.end();
5959
});
6060

6161
tape( 'attached to the main export is the generator state', function test( t ) {
62-
t.equal( isUint32Array( random.state ), true, 'has property' );
62+
t.strictEqual( isUint32Array( random.state ), true, 'has property' );
6363
t.end();
6464
});
6565

6666
tape( 'attached to the main export is the generator state length', function test( t ) {
67-
t.equal( typeof random.stateLength, 'number', 'has property' );
67+
t.strictEqual( typeof random.stateLength, 'number', 'has property' );
6868
t.end();
6969
});
7070

7171
tape( 'attached to the main export is the generator state size', function test( t ) {
72-
t.equal( typeof random.byteLength, 'number', 'has property' );
72+
t.strictEqual( typeof random.byteLength, 'number', 'has property' );
7373
t.end();
7474
});

lib/node_modules/@stdlib/random/array/chisquare/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ tape( 'attached to the main export is a `factory` method', function test( t ) {
4444
});
4545

4646
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof random.PRNG, 'function', 'has property' );
47+
t.strictEqual( typeof random.PRNG, 'function', 'has property' );
4848
t.end();
4949
});
5050

5151
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( random.seed ), true, 'has property' );
52+
t.strictEqual( isUint32Array( random.seed ), true, 'has property' );
5353
t.end();
5454
});
5555

5656
tape( 'attached to the main export is the generator seed length', function test( t ) {
57-
t.equal( typeof random.seedLength, 'number', 'has property' );
57+
t.strictEqual( typeof random.seedLength, 'number', 'has property' );
5858
t.end();
5959
});
6060

6161
tape( 'attached to the main export is the generator state', function test( t ) {
62-
t.equal( isUint32Array( random.state ), true, 'has property' );
62+
t.strictEqual( isUint32Array( random.state ), true, 'has property' );
6363
t.end();
6464
});
6565

6666
tape( 'attached to the main export is the generator state length', function test( t ) {
67-
t.equal( typeof random.stateLength, 'number', 'has property' );
67+
t.strictEqual( typeof random.stateLength, 'number', 'has property' );
6868
t.end();
6969
});
7070

7171
tape( 'attached to the main export is the generator state size', function test( t ) {
72-
t.equal( typeof random.byteLength, 'number', 'has property' );
72+
t.strictEqual( typeof random.byteLength, 'number', 'has property' );
7373
t.end();
7474
});

lib/node_modules/@stdlib/random/array/cosine/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ tape( 'attached to the main export is a `factory` method', function test( t ) {
4444
});
4545

4646
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof random.PRNG, 'function', 'has property' );
47+
t.strictEqual( typeof random.PRNG, 'function', 'has property' );
4848
t.end();
4949
});
5050

5151
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( random.seed ), true, 'has property' );
52+
t.strictEqual( isUint32Array( random.seed ), true, 'has property' );
5353
t.end();
5454
});
5555

5656
tape( 'attached to the main export is the generator seed length', function test( t ) {
57-
t.equal( typeof random.seedLength, 'number', 'has property' );
57+
t.strictEqual( typeof random.seedLength, 'number', 'has property' );
5858
t.end();
5959
});
6060

6161
tape( 'attached to the main export is the generator state', function test( t ) {
62-
t.equal( isUint32Array( random.state ), true, 'has property' );
62+
t.strictEqual( isUint32Array( random.state ), true, 'has property' );
6363
t.end();
6464
});
6565

6666
tape( 'attached to the main export is the generator state length', function test( t ) {
67-
t.equal( typeof random.stateLength, 'number', 'has property' );
67+
t.strictEqual( typeof random.stateLength, 'number', 'has property' );
6868
t.end();
6969
});
7070

7171
tape( 'attached to the main export is the generator state size', function test( t ) {
72-
t.equal( typeof random.byteLength, 'number', 'has property' );
72+
t.strictEqual( typeof random.byteLength, 'number', 'has property' );
7373
t.end();
7474
});

lib/node_modules/@stdlib/random/array/discrete-uniform/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ tape( 'attached to the main export is a `factory` method', function test( t ) {
4444
});
4545

4646
tape( 'attached to the main export is the underlying PRNG', function test( t ) {
47-
t.equal( typeof random.PRNG, 'function', 'has property' );
47+
t.strictEqual( typeof random.PRNG, 'function', 'has property' );
4848
t.end();
4949
});
5050

5151
tape( 'attached to the main export is the generator seed', function test( t ) {
52-
t.equal( isUint32Array( random.seed ), true, 'has property' );
52+
t.strictEqual( isUint32Array( random.seed ), true, 'has property' );
5353
t.end();
5454
});
5555

5656
tape( 'attached to the main export is the generator seed length', function test( t ) {
57-
t.equal( typeof random.seedLength, 'number', 'has property' );
57+
t.strictEqual( typeof random.seedLength, 'number', 'has property' );
5858
t.end();
5959
});
6060

6161
tape( 'attached to the main export is the generator state', function test( t ) {
62-
t.equal( isUint32Array( random.state ), true, 'has property' );
62+
t.strictEqual( isUint32Array( random.state ), true, 'has property' );
6363
t.end();
6464
});
6565

6666
tape( 'attached to the main export is the generator state length', function test( t ) {
67-
t.equal( typeof random.stateLength, 'number', 'has property' );
67+
t.strictEqual( typeof random.stateLength, 'number', 'has property' );
6868
t.end();
6969
});
7070

7171
tape( 'attached to the main export is the generator state size', function test( t ) {
72-
t.equal( typeof random.byteLength, 'number', 'has property' );
72+
t.strictEqual( typeof random.byteLength, 'number', 'has property' );
7373
t.end();
7474
});

0 commit comments

Comments
 (0)