Skip to content

Commit 7483bef

Browse files
committed
test: use .strictEqual() instead of .equal()
--- 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 dbeef74 commit 7483bef

File tree

97 files changed

+623
-623
lines changed

Some content is hidden

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

97 files changed

+623
-623
lines changed

lib/node_modules/@stdlib/complex/base/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ tape( 'main export is an object', function test( t ) {
3535

3636
tape( 'the exported object contains key-value pairs', function test( t ) {
3737
var keys = objectKeys( ns );
38-
t.equal( keys.length > 0, true, 'has keys' );
38+
t.strictEqual( keys.length > 0, true, 'has keys' );
3939
t.end();
4040
});

lib/node_modules/@stdlib/complex/float32/base/assert/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ tape( 'main export is an object', function test( t ) {
3535

3636
tape( 'the exported object contains key-value pairs', function test( t ) {
3737
var keys = objectKeys( ns );
38-
t.equal( keys.length > 0, true, 'has keys' );
38+
t.strictEqual( keys.length > 0, true, 'has keys' );
3939
t.end();
4040
});

lib/node_modules/@stdlib/complex/float32/base/identity/test/test.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ tape( 'the function evaluates the identity function when provided a finite numbe
4444
var v;
4545

4646
v = cidentityf( new Complex64( -2.0, 1.0 ) );
47-
t.equal( real( v ), -2.0, 'returns expected value' );
48-
t.equal( imag( v ), 1.0, 'returns expected value' );
47+
t.strictEqual( real( v ), -2.0, 'returns expected value' );
48+
t.strictEqual( imag( v ), 1.0, 'returns expected value' );
4949

5050
v = cidentityf( new Complex64( 3.0, -2.0 ) );
51-
t.equal( real( v ), 3.0, 'returns expected value' );
52-
t.equal( imag( v ), -2.0, 'returns expected value' );
51+
t.strictEqual( real( v ), 3.0, 'returns expected value' );
52+
t.strictEqual( imag( v ), -2.0, 'returns expected value' );
5353

5454
t.end();
5555
});
@@ -58,20 +58,20 @@ tape( 'the function evaluates the identity function when provided +-zero', funct
5858
var v;
5959

6060
v = cidentityf( new Complex64( -0.0, -0.0 ) );
61-
t.equal( isNegativeZerof( real( v ) ), true, 'returns expected value' );
62-
t.equal( isNegativeZerof( imag( v ) ), true, 'returns expected value' );
61+
t.strictEqual( isNegativeZerof( real( v ) ), true, 'returns expected value' );
62+
t.strictEqual( isNegativeZerof( imag( v ) ), true, 'returns expected value' );
6363

6464
v = cidentityf( new Complex64( 0.0, 0.0 ) );
65-
t.equal( isPositiveZerof( real( v ) ), true, 'returns expected value' );
66-
t.equal( isPositiveZerof( imag( v ) ), true, 'returns expected value' );
65+
t.strictEqual( isPositiveZerof( real( v ) ), true, 'returns expected value' );
66+
t.strictEqual( isPositiveZerof( imag( v ) ), true, 'returns expected value' );
6767

6868
v = cidentityf( new Complex64( -0.0, 0.0 ) );
69-
t.equal( isNegativeZerof( real( v ) ), true, 'returns expected value' );
70-
t.equal( isPositiveZerof( imag( v ) ), true, 'returns expected value' );
69+
t.strictEqual( isNegativeZerof( real( v ) ), true, 'returns expected value' );
70+
t.strictEqual( isPositiveZerof( imag( v ) ), true, 'returns expected value' );
7171

7272
v = cidentityf( new Complex64( 0.0, -0.0 ) );
73-
t.equal( isPositiveZerof( real( v ) ), true, 'returns expected value' );
74-
t.equal( isNegativeZerof( imag( v ) ), true, 'returns expected value' );
73+
t.strictEqual( isPositiveZerof( real( v ) ), true, 'returns expected value' );
74+
t.strictEqual( isNegativeZerof( imag( v ) ), true, 'returns expected value' );
7575

7676
t.end();
7777
});
@@ -80,20 +80,20 @@ tape( 'the function evaluates the identity function when provided +-infinity', f
8080
var v;
8181

8282
v = cidentityf( new Complex64( PINF, PINF ) );
83-
t.equal( real( v ), PINF, 'returns expected value' );
84-
t.equal( imag( v ), PINF, 'returns expected value' );
83+
t.strictEqual( real( v ), PINF, 'returns expected value' );
84+
t.strictEqual( imag( v ), PINF, 'returns expected value' );
8585

8686
v = cidentityf( new Complex64( NINF, NINF ) );
87-
t.equal( real( v ), NINF, 'returns expected value' );
88-
t.equal( imag( v ), NINF, 'returns expected value' );
87+
t.strictEqual( real( v ), NINF, 'returns expected value' );
88+
t.strictEqual( imag( v ), NINF, 'returns expected value' );
8989

9090
v = cidentityf( new Complex64( NINF, PINF ) );
91-
t.equal( real( v ), NINF, 'returns expected value' );
92-
t.equal( imag( v ), PINF, 'returns expected value' );
91+
t.strictEqual( real( v ), NINF, 'returns expected value' );
92+
t.strictEqual( imag( v ), PINF, 'returns expected value' );
9393

9494
v = cidentityf( new Complex64( PINF, NINF ) );
95-
t.equal( real( v ), PINF, 'returns expected value' );
96-
t.equal( imag( v ), NINF, 'returns expected value' );
95+
t.strictEqual( real( v ), PINF, 'returns expected value' );
96+
t.strictEqual( imag( v ), NINF, 'returns expected value' );
9797

9898
t.end();
9999
});
@@ -102,16 +102,16 @@ tape( 'the function evaluates the identity function when provided `NaN`', functi
102102
var v;
103103

104104
v = cidentityf( new Complex64( NaN, NaN ) );
105-
t.equal( isnanf( real( v ) ), true, 'returns expected value' );
106-
t.equal( isnanf( imag( v ) ), true, 'returns expected value' );
105+
t.strictEqual( isnanf( real( v ) ), true, 'returns expected value' );
106+
t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' );
107107

108108
v = cidentityf( new Complex64( 1.0, NaN ) );
109-
t.equal( real( v ), 1.0, 'returns expected value' );
110-
t.equal( isnanf( imag( v ) ), true, 'returns expected value' );
109+
t.strictEqual( real( v ), 1.0, 'returns expected value' );
110+
t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' );
111111

112112
v = cidentityf( new Complex64( NaN, 1.0 ) );
113-
t.equal( isnanf( real( v ) ), true, 'returns expected value' );
114-
t.equal( imag( v ), 1.0, 'returns expected value' );
113+
t.strictEqual( isnanf( real( v ) ), true, 'returns expected value' );
114+
t.strictEqual( imag( v ), 1.0, 'returns expected value' );
115115

116116
t.end();
117117
});

lib/node_modules/@stdlib/complex/float32/base/identity/test/test.native.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ tape( 'the function evaluates the identity function when provided a finite numbe
5353
var v;
5454

5555
v = cidentityf( new Complex64( -2.0, 1.0 ) );
56-
t.equal( real( v ), -2.0, 'returns expected value' );
57-
t.equal( imag( v ), 1.0, 'returns expected value' );
56+
t.strictEqual( real( v ), -2.0, 'returns expected value' );
57+
t.strictEqual( imag( v ), 1.0, 'returns expected value' );
5858

5959
v = cidentityf( new Complex64( 3.0, -2.0 ) );
60-
t.equal( real( v ), 3.0, 'returns expected value' );
61-
t.equal( imag( v ), -2.0, 'returns expected value' );
60+
t.strictEqual( real( v ), 3.0, 'returns expected value' );
61+
t.strictEqual( imag( v ), -2.0, 'returns expected value' );
6262

6363
t.end();
6464
});
@@ -67,20 +67,20 @@ tape( 'the function evaluates the identity function when provided +-zero', opts,
6767
var v;
6868

6969
v = cidentityf( new Complex64( -0.0, -0.0 ) );
70-
t.equal( isNegativeZerof( real( v ) ), true, 'returns expected value' );
71-
t.equal( isNegativeZerof( imag( v ) ), true, 'returns expected value' );
70+
t.strictEqual( isNegativeZerof( real( v ) ), true, 'returns expected value' );
71+
t.strictEqual( isNegativeZerof( imag( v ) ), true, 'returns expected value' );
7272

7373
v = cidentityf( new Complex64( 0.0, 0.0 ) );
74-
t.equal( isPositiveZerof( real( v ) ), true, 'returns expected value' );
75-
t.equal( isPositiveZerof( imag( v ) ), true, 'returns expected value' );
74+
t.strictEqual( isPositiveZerof( real( v ) ), true, 'returns expected value' );
75+
t.strictEqual( isPositiveZerof( imag( v ) ), true, 'returns expected value' );
7676

7777
v = cidentityf( new Complex64( -0.0, 0.0 ) );
78-
t.equal( isNegativeZerof( real( v ) ), true, 'returns expected value' );
79-
t.equal( isPositiveZerof( imag( v ) ), true, 'returns expected value' );
78+
t.strictEqual( isNegativeZerof( real( v ) ), true, 'returns expected value' );
79+
t.strictEqual( isPositiveZerof( imag( v ) ), true, 'returns expected value' );
8080

8181
v = cidentityf( new Complex64( 0.0, -0.0 ) );
82-
t.equal( isPositiveZerof( real( v ) ), true, 'returns expected value' );
83-
t.equal( isNegativeZerof( imag( v ) ), true, 'returns expected value' );
82+
t.strictEqual( isPositiveZerof( real( v ) ), true, 'returns expected value' );
83+
t.strictEqual( isNegativeZerof( imag( v ) ), true, 'returns expected value' );
8484

8585
t.end();
8686
});
@@ -89,20 +89,20 @@ tape( 'the function evaluates the identity function when provided +-infinity', o
8989
var v;
9090

9191
v = cidentityf( new Complex64( PINF, PINF ) );
92-
t.equal( real( v ), PINF, 'returns expected value' );
93-
t.equal( imag( v ), PINF, 'returns expected value' );
92+
t.strictEqual( real( v ), PINF, 'returns expected value' );
93+
t.strictEqual( imag( v ), PINF, 'returns expected value' );
9494

9595
v = cidentityf( new Complex64( NINF, NINF ) );
96-
t.equal( real( v ), NINF, 'returns expected value' );
97-
t.equal( imag( v ), NINF, 'returns expected value' );
96+
t.strictEqual( real( v ), NINF, 'returns expected value' );
97+
t.strictEqual( imag( v ), NINF, 'returns expected value' );
9898

9999
v = cidentityf( new Complex64( NINF, PINF ) );
100-
t.equal( real( v ), NINF, 'returns expected value' );
101-
t.equal( imag( v ), PINF, 'returns expected value' );
100+
t.strictEqual( real( v ), NINF, 'returns expected value' );
101+
t.strictEqual( imag( v ), PINF, 'returns expected value' );
102102

103103
v = cidentityf( new Complex64( PINF, NINF ) );
104-
t.equal( real( v ), PINF, 'returns expected value' );
105-
t.equal( imag( v ), NINF, 'returns expected value' );
104+
t.strictEqual( real( v ), PINF, 'returns expected value' );
105+
t.strictEqual( imag( v ), NINF, 'returns expected value' );
106106

107107
t.end();
108108
});
@@ -111,16 +111,16 @@ tape( 'the function evaluates the identity function when provided `NaN`', opts,
111111
var v;
112112

113113
v = cidentityf( new Complex64( NaN, NaN ) );
114-
t.equal( isnanf( real( v ) ), true, 'returns expected value' );
115-
t.equal( isnanf( imag( v ) ), true, 'returns expected value' );
114+
t.strictEqual( isnanf( real( v ) ), true, 'returns expected value' );
115+
t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' );
116116

117117
v = cidentityf( new Complex64( 1.0, NaN ) );
118-
t.equal( real( v ), 1.0, 'returns expected value' );
119-
t.equal( isnanf( imag( v ) ), true, 'returns expected value' );
118+
t.strictEqual( real( v ), 1.0, 'returns expected value' );
119+
t.strictEqual( isnanf( imag( v ) ), true, 'returns expected value' );
120120

121121
v = cidentityf( new Complex64( NaN, 1.0 ) );
122-
t.equal( isnanf( real( v ) ), true, 'returns expected value' );
123-
t.equal( imag( v ), 1.0, 'returns expected value' );
122+
t.strictEqual( isnanf( real( v ) ), true, 'returns expected value' );
123+
t.strictEqual( imag( v ), 1.0, 'returns expected value' );
124124

125125
t.end();
126126
});

lib/node_modules/@stdlib/complex/float32/base/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ tape( 'main export is an object', function test( t ) {
3535

3636
tape( 'the exported object contains key-value pairs', function test( t ) {
3737
var keys = objectKeys( ns );
38-
t.equal( keys.length > 0, true, 'has keys' );
38+
t.strictEqual( keys.length > 0, true, 'has keys' );
3939
t.end();
4040
});

lib/node_modules/@stdlib/complex/float32/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ tape( 'main export is an object', function test( t ) {
3535

3636
tape( 'the exported object contains key-value pairs', function test( t ) {
3737
var keys = objectKeys( ns );
38-
t.equal( keys.length > 0, true, 'has keys' );
38+
t.strictEqual( keys.length > 0, true, 'has keys' );
3939
t.end();
4040
});

lib/node_modules/@stdlib/complex/float64/base/assert/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ tape( 'main export is an object', function test( t ) {
3535

3636
tape( 'the exported object contains key-value pairs', function test( t ) {
3737
var keys = objectKeys( ns );
38-
t.equal( keys.length > 0, true, 'has keys' );
38+
t.strictEqual( keys.length > 0, true, 'has keys' );
3939
t.end();
4040
});

lib/node_modules/@stdlib/complex/float64/base/identity/test/test.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ tape( 'the function evaluates the identity function when provided a finite numbe
4444
var v;
4545

4646
v = cidentity( new Complex128( -2.0, 1.0 ) );
47-
t.equal( real( v ), -2.0, 'returns expected value' );
48-
t.equal( imag( v ), 1.0, 'returns expected value' );
47+
t.strictEqual( real( v ), -2.0, 'returns expected value' );
48+
t.strictEqual( imag( v ), 1.0, 'returns expected value' );
4949

5050
v = cidentity( new Complex128( 3.0, -2.0 ) );
51-
t.equal( real( v ), 3.0, 'returns expected value' );
52-
t.equal( imag( v ), -2.0, 'returns expected value' );
51+
t.strictEqual( real( v ), 3.0, 'returns expected value' );
52+
t.strictEqual( imag( v ), -2.0, 'returns expected value' );
5353

5454
t.end();
5555
});
@@ -58,20 +58,20 @@ tape( 'the function evaluates the identity function when provided +-zero', funct
5858
var v;
5959

6060
v = cidentity( new Complex128( -0.0, -0.0 ) );
61-
t.equal( isNegativeZero( real( v ) ), true, 'returns expected value' );
62-
t.equal( isNegativeZero( imag( v ) ), true, 'returns expected value' );
61+
t.strictEqual( isNegativeZero( real( v ) ), true, 'returns expected value' );
62+
t.strictEqual( isNegativeZero( imag( v ) ), true, 'returns expected value' );
6363

6464
v = cidentity( new Complex128( 0.0, 0.0 ) );
65-
t.equal( isPositiveZero( real( v ) ), true, 'returns expected value' );
66-
t.equal( isPositiveZero( imag( v ) ), true, 'returns expected value' );
65+
t.strictEqual( isPositiveZero( real( v ) ), true, 'returns expected value' );
66+
t.strictEqual( isPositiveZero( imag( v ) ), true, 'returns expected value' );
6767

6868
v = cidentity( new Complex128( -0.0, 0.0 ) );
69-
t.equal( isNegativeZero( real( v ) ), true, 'returns expected value' );
70-
t.equal( isPositiveZero( imag( v ) ), true, 'returns expected value' );
69+
t.strictEqual( isNegativeZero( real( v ) ), true, 'returns expected value' );
70+
t.strictEqual( isPositiveZero( imag( v ) ), true, 'returns expected value' );
7171

7272
v = cidentity( new Complex128( 0.0, -0.0 ) );
73-
t.equal( isPositiveZero( real( v ) ), true, 'returns expected value' );
74-
t.equal( isNegativeZero( imag( v ) ), true, 'returns expected value' );
73+
t.strictEqual( isPositiveZero( real( v ) ), true, 'returns expected value' );
74+
t.strictEqual( isNegativeZero( imag( v ) ), true, 'returns expected value' );
7575

7676
t.end();
7777
});
@@ -80,20 +80,20 @@ tape( 'the function evaluates the identity function when provided +-infinity', f
8080
var v;
8181

8282
v = cidentity( new Complex128( PINF, PINF ) );
83-
t.equal( real( v ), PINF, 'returns expected value' );
84-
t.equal( imag( v ), PINF, 'returns expected value' );
83+
t.strictEqual( real( v ), PINF, 'returns expected value' );
84+
t.strictEqual( imag( v ), PINF, 'returns expected value' );
8585

8686
v = cidentity( new Complex128( NINF, NINF ) );
87-
t.equal( real( v ), NINF, 'returns expected value' );
88-
t.equal( imag( v ), NINF, 'returns expected value' );
87+
t.strictEqual( real( v ), NINF, 'returns expected value' );
88+
t.strictEqual( imag( v ), NINF, 'returns expected value' );
8989

9090
v = cidentity( new Complex128( NINF, PINF ) );
91-
t.equal( real( v ), NINF, 'returns expected value' );
92-
t.equal( imag( v ), PINF, 'returns expected value' );
91+
t.strictEqual( real( v ), NINF, 'returns expected value' );
92+
t.strictEqual( imag( v ), PINF, 'returns expected value' );
9393

9494
v = cidentity( new Complex128( PINF, NINF ) );
95-
t.equal( real( v ), PINF, 'returns expected value' );
96-
t.equal( imag( v ), NINF, 'returns expected value' );
95+
t.strictEqual( real( v ), PINF, 'returns expected value' );
96+
t.strictEqual( imag( v ), NINF, 'returns expected value' );
9797

9898
t.end();
9999
});
@@ -102,16 +102,16 @@ tape( 'the function evaluates the identity function when provided `NaN`', functi
102102
var v;
103103

104104
v = cidentity( new Complex128( NaN, NaN ) );
105-
t.equal( isnan( real( v ) ), true, 'returns expected value' );
106-
t.equal( isnan( imag( v ) ), true, 'returns expected value' );
105+
t.strictEqual( isnan( real( v ) ), true, 'returns expected value' );
106+
t.strictEqual( isnan( imag( v ) ), true, 'returns expected value' );
107107

108108
v = cidentity( new Complex128( 1.0, NaN ) );
109-
t.equal( real( v ), 1.0, 'returns expected value' );
110-
t.equal( isnan( imag( v ) ), true, 'returns expected value' );
109+
t.strictEqual( real( v ), 1.0, 'returns expected value' );
110+
t.strictEqual( isnan( imag( v ) ), true, 'returns expected value' );
111111

112112
v = cidentity( new Complex128( NaN, 1.0 ) );
113-
t.equal( isnan( real( v ) ), true, 'returns expected value' );
114-
t.equal( imag( v ), 1.0, 'returns expected value' );
113+
t.strictEqual( isnan( real( v ) ), true, 'returns expected value' );
114+
t.strictEqual( imag( v ), 1.0, 'returns expected value' );
115115

116116
t.end();
117117
});

0 commit comments

Comments
 (0)