Skip to content

Commit a2cfe0e

Browse files
committed
test: update test messages according to current project conventions
--- 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 c5ccaff commit a2cfe0e

File tree

3 files changed

+56
-56
lines changed

3 files changed

+56
-56
lines changed

lib/node_modules/@stdlib/math/base/special/frexp/test/test.assign.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ tape( 'the function splits a floating-point number into a normalized fraction an
6262
for ( i = 0; i < x.length; i++ ) {
6363
out = new Float64Array( 2 );
6464
f = frexp( x[i], out, 1, 0 );
65-
t.equal( f, out, 'returns output array' );
66-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
65+
t.strictEqual( f, out, 'returns output array' );
66+
t.deepEqual( f, expected[ i ], 'returns expected value' );
6767
}
6868
t.end();
6969
});
@@ -80,8 +80,8 @@ tape( 'the function splits a floating-point number into a normalized fraction an
8080
for ( i = 0; i < x.length; i++ ) {
8181
out = new Float64Array( 2 );
8282
f = frexp( x[i], out, 1, 0 );
83-
t.equal( f, out, 'returns output array' );
84-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
83+
t.strictEqual( f, out, 'returns output array' );
84+
t.deepEqual( f, expected[ i ], 'returns expected value' );
8585
}
8686
t.end();
8787
});
@@ -98,8 +98,8 @@ tape( 'the function splits a floating-point number into a normalized fraction an
9898
for ( i = 0; i < x.length; i++ ) {
9999
out = new Float64Array( 2 );
100100
f = frexp( x[i], out, 1, 0 );
101-
t.equal( f, out, 'returns output array' );
102-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
101+
t.strictEqual( f, out, 'returns output array' );
102+
t.deepEqual( f, expected[ i ], 'returns expected value' );
103103
}
104104
t.end();
105105
});
@@ -116,8 +116,8 @@ tape( 'the function splits a floating-point number into a normalized fraction an
116116
for ( i = 0; i < x.length; i++ ) {
117117
out = new Float64Array( 2 );
118118
f = frexp( x[i], out, 1, 0 );
119-
t.equal( f, out, 'returns output array' );
120-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
119+
t.strictEqual( f, out, 'returns output array' );
120+
t.deepEqual( f, expected[ i ], 'returns expected value' );
121121
}
122122
t.end();
123123
});
@@ -142,14 +142,14 @@ tape( 'the returned normalized fraction and exponent satisfy the relation `x = f
142142
x = sign * frac * pow( 10.0, exp );
143143
out = new Float64Array( 2 );
144144
f = frexp( x, out, 1, 0 );
145-
t.equal( f, out, 'returns output array' );
145+
t.strictEqual( f, out, 'returns output array' );
146146

147147
if ( f[ 1 ] > BIAS ) {
148148
f = f[ 0 ] * pow( 2.0, BIAS ) * pow( 2.0, f[1]-BIAS );
149149
} else {
150150
f = f[ 0 ] * pow( 2.0, f[ 1 ] );
151151
}
152-
t.equal( f, x, 'frac * 2^exp equals ' + x );
152+
t.strictEqual( f, x, 'returns expected value' );
153153
}
154154
t.end();
155155
});
@@ -174,11 +174,11 @@ tape( 'the absolute value of the normalized fraction is on the interval `[1/2,1)
174174
x = sign * frac * pow( 10.0, exp );
175175
out = new Float64Array( 2 );
176176
f = frexp( x, out, 1, 0 );
177-
t.equal( f, out, 'returns output array' );
177+
t.strictEqual( f, out, 'returns output array' );
178178

179179
// Compute the absolute value of the normalized fraction:
180180
f = abs( f[ 0 ] );
181-
t.ok( f >= 0.5 && f < 1.0, 'absolute value of the normalized fraction is on the interval [1/2,1). x: ' + x + '.' );
181+
t.ok( f >= 0.5 && f < 1.0, 'returns expected value' );
182182
}
183183
t.end();
184184
});
@@ -189,8 +189,8 @@ tape( 'if provided `+0`, the function returns `[0,0]`', function test( t ) {
189189

190190
out = new Float64Array( 2 );
191191
f = frexp( 0.0, out, 1, 0 );
192-
t.equal( f, out, 'returns output array' );
193-
t.deepEqual( f, [0.0, 0], 'returns [0,0]' );
192+
t.strictEqual( f, out, 'returns output array' );
193+
t.deepEqual( f, [ 0.0, 0 ], 'returns expected value' );
194194
t.end();
195195
});
196196

@@ -200,9 +200,9 @@ tape( 'if provided `-0`, the function returns `[-0,0]`', function test( t ) {
200200

201201
out = new Float64Array( 2 );
202202
f = frexp( -0.0, out, 1, 0 );
203-
t.equal( f, out, 'returns output array' );
204-
t.equal( isNegativeZero( f[0] ), true, 'first element is -0' );
205-
t.deepEqual( f, [-0.0, 0], 'returns [-0,0]' );
203+
t.strictEqual( f, out, 'returns output array' );
204+
t.strictEqual( isNegativeZero( f[0] ), true, 'returns expected value' );
205+
t.deepEqual( f, [ -0.0, 0 ], 'returns expected value' );
206206
t.end();
207207
});
208208

@@ -212,8 +212,8 @@ tape( 'if provided `+infinity`, the function returns `[+infinity,0]`', function
212212

213213
out = new Float64Array( 2 );
214214
f = frexp( PINF, out, 1, 0 );
215-
t.equal( f, out, 'returns output array' );
216-
t.deepEqual( f, [PINF, 0], 'returns [+inf,0]' );
215+
t.strictEqual( f, out, 'returns output array' );
216+
t.deepEqual( f, [ PINF, 0 ], 'returns expected value' );
217217
t.end();
218218
});
219219

@@ -223,8 +223,8 @@ tape( 'if provided `-infinity`, the function returns `[-infinity,0]`', function
223223

224224
out = new Float64Array( 2 );
225225
f = frexp( NINF, out, 1, 0 );
226-
t.equal( f, out, 'returns output array' );
227-
t.deepEqual( f, [NINF, 0], 'returns [-inf,0]' );
226+
t.strictEqual( f, out, 'returns output array' );
227+
t.deepEqual( f, [ NINF, 0 ], 'returns expected value' );
228228
t.end();
229229
});
230230

@@ -234,9 +234,9 @@ tape( 'if provided `NaN`, the function returns `[NaN,0]`', function test( t ) {
234234

235235
out = new Float64Array( 2 );
236236
f = frexp( NaN, out, 1, 0 );
237-
t.equal( f, out, 'returns output array' );
238-
t.equal( isnan( f[0] ), true, 'first element is NaN' );
239-
t.equal( f[ 1 ], 0, 'second element is 0' );
237+
t.strictEqual( f, out, 'returns output array' );
238+
t.strictEqual( isnan( f[0] ), true, 'returns expected value' );
239+
t.strictEqual( f[ 1 ], 0, 'returns expected value' );
240240
t.end();
241241
});
242242

@@ -247,9 +247,9 @@ tape( 'the function supports providing an output array', function test( t ) {
247247
out = [ 0.0, 0 ];
248248
f = frexp( 4.0, out, 1, 0 );
249249

250-
t.equal( f, out, 'returns output array' );
251-
t.equal( f[ 0 ], 0.5, 'has expected first element' );
252-
t.equal( f[ 1 ], 3, 'has expected second element' );
250+
t.strictEqual( f, out, 'returns output array' );
251+
t.strictEqual( f[ 0 ], 0.5, 'returns expected value' );
252+
t.strictEqual( f[ 1 ], 3, 'returns expected value' );
253253

254254
t.end();
255255
});
@@ -261,9 +261,9 @@ tape( 'the function supports providing an output typed array', function test( t
261261
out = new Float64Array( 2 );
262262
f = frexp( 4.0, out, 1, 0 );
263263

264-
t.equal( f, out, 'returns output array' );
265-
t.equal( f[ 0 ], 0.5, 'has expected first element' );
266-
t.equal( f[ 1 ], 3, 'has expected second element' );
264+
t.strictEqual( f, out, 'returns output array' );
265+
t.strictEqual( f[ 0 ], 0.5, 'returns expected value' );
266+
t.strictEqual( f[ 1 ], 3, 'returns expected value' );
267267

268268
t.end();
269269
});

lib/node_modules/@stdlib/math/base/special/frexp/test/test.main.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ tape( 'the function splits a floating-point number into a normalized fraction an
5959
expected = small.expected;
6060
for ( i = 0; i < x.length; i++ ) {
6161
f = frexp( x[i] );
62-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
62+
t.deepEqual( f, expected[ i ], 'returns expected value' );
6363
}
6464
t.end();
6565
});
@@ -74,7 +74,7 @@ tape( 'the function splits a floating-point number into a normalized fraction an
7474
expected = medium.expected;
7575
for ( i = 0; i < x.length; i++ ) {
7676
f = frexp( x[i] );
77-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
77+
t.deepEqual( f, expected[ i ], 'returns expected value' );
7878
}
7979
t.end();
8080
});
@@ -89,7 +89,7 @@ tape( 'the function splits a floating-point number into a normalized fraction an
8989
expected = large.expected;
9090
for ( i = 0; i < x.length; i++ ) {
9191
f = frexp( x[i] );
92-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
92+
t.deepEqual( f, expected[ i ], 'returns expected value' );
9393
}
9494
t.end();
9595
});
@@ -104,7 +104,7 @@ tape( 'the function splits a floating-point number into a normalized fraction an
104104
expected = subnormal.expected;
105105
for ( i = 0; i < x.length; i++ ) {
106106
f = frexp( x[i] );
107-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
107+
t.deepEqual( f, expected[ i ], 'returns expected value' );
108108
}
109109
t.end();
110110
});
@@ -133,7 +133,7 @@ tape( 'the returned normalized fraction and exponent satisfy the relation `x = f
133133
} else {
134134
f = f[ 0 ] * pow( 2.0, f[ 1 ] );
135135
}
136-
t.equal( f, x, 'frac * 2^exp equals ' + x );
136+
t.strictEqual( f, x, 'returns expected value' );
137137
}
138138
t.end();
139139
});
@@ -160,39 +160,39 @@ tape( 'the absolute value of the normalized fraction is on the interval `[1/2,1)
160160
// Compute the absolute value of the normalized fraction:
161161
f = abs( f[ 0 ] );
162162

163-
t.ok( f >= 0.5 && f < 1.0, 'absolute value of the normalized fraction is on the interval [1/2,1). x: ' + x + '.' );
163+
t.ok( f >= 0.5 && f < 1.0, 'returns expected value' );
164164
}
165165
t.end();
166166
});
167167

168168
tape( 'if provided `+0`, the function returns `[0,0]`', function test( t ) {
169169
var f = frexp( 0.0 );
170-
t.deepEqual( f, [0.0, 0], 'returns [0,0]' );
170+
t.deepEqual( f, [ 0.0, 0 ], 'returns expected value' );
171171
t.end();
172172
});
173173

174174
tape( 'if provided `-0`, the function returns `[-0,0]`', function test( t ) {
175175
var f = frexp( -0.0 );
176-
t.equal( isNegativeZero( f[0] ), true, 'first element is -0' );
177-
t.deepEqual( f, [-0.0, 0], 'returns [-0,0]' );
176+
t.strictEqual( isNegativeZero( f[0] ), true, 'first element is -0' );
177+
t.deepEqual( f, [ -0.0, 0 ], 'returns expected value' );
178178
t.end();
179179
});
180180

181181
tape( 'if provided `+infinity`, the function returns `[+infinity,0]`', function test( t ) {
182182
var f = frexp( PINF );
183-
t.deepEqual( f, [PINF, 0], 'returns [+inf,0]' );
183+
t.deepEqual( f, [ PINF, 0 ], 'returns expected value' );
184184
t.end();
185185
});
186186

187187
tape( 'if provided `-infinity`, the function returns `[-infinity,0]`', function test( t ) {
188188
var f = frexp( NINF );
189-
t.deepEqual( f, [NINF, 0], 'returns [-inf,0]' );
189+
t.deepEqual( f, [ NINF, 0 ], 'returns expected value' );
190190
t.end();
191191
});
192192

193193
tape( 'if provided `NaN`, the function returns `[NaN,0]`', function test( t ) {
194194
var f = frexp( NaN );
195-
t.equal( isnan( f[0] ), true, 'first element is NaN' );
196-
t.equal( f[ 1 ], 0, 'second element is 0' );
195+
t.strictEqual( isnan( f[0] ), true, 'returns expected value' );
196+
t.strictEqual( f[ 1 ], 0, 'returns expected value' );
197197
t.end();
198198
});

lib/node_modules/@stdlib/math/base/special/frexp/test/test.native.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ tape( 'the function splits a floating-point number into a normalized fraction an
6868
expected = small.expected;
6969
for ( i = 0; i < x.length; i++ ) {
7070
f = frexp( x[i] );
71-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
71+
t.deepEqual( f, expected[ i ], 'returns expected value' );
7272
}
7373
t.end();
7474
});
@@ -83,7 +83,7 @@ tape( 'the function splits a floating-point number into a normalized fraction an
8383
expected = medium.expected;
8484
for ( i = 0; i < x.length; i++ ) {
8585
f = frexp( x[i] );
86-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
86+
t.deepEqual( f, expected[ i ], 'returns expected value' );
8787
}
8888
t.end();
8989
});
@@ -98,7 +98,7 @@ tape( 'the function splits a floating-point number into a normalized fraction an
9898
expected = large.expected;
9999
for ( i = 0; i < x.length; i++ ) {
100100
f = frexp( x[i] );
101-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
101+
t.deepEqual( f, expected[ i ], 'returns expected value' );
102102
}
103103
t.end();
104104
});
@@ -113,7 +113,7 @@ tape( 'the function splits a floating-point number into a normalized fraction an
113113
expected = subnormal.expected;
114114
for ( i = 0; i < x.length; i++ ) {
115115
f = frexp( x[i] );
116-
t.deepEqual( f, expected[ i ], 'returns expected results for ' + x[i] );
116+
t.deepEqual( f, expected[ i ], 'returns expected value' );
117117
}
118118
t.end();
119119
});
@@ -142,7 +142,7 @@ tape( 'the returned normalized fraction and exponent satisfy the relation `x = f
142142
} else {
143143
f = f[ 0 ] * pow( 2.0, f[ 1 ] );
144144
}
145-
t.strictEqual( f, x, 'frac * 2^exp equals ' + x );
145+
t.strictEqual( f, x, 'returns expected value' );
146146
}
147147
t.end();
148148
});
@@ -169,39 +169,39 @@ tape( 'the absolute value of the normalized fraction is on the interval `[1/2,1)
169169
// Compute the absolute value of the normalized fraction:
170170
f = abs( f[ 0 ] );
171171

172-
t.ok( f >= 0.5 && f < 1.0, 'absolute value of the normalized fraction is on the interval [1/2,1). x: ' + x + '.' );
172+
t.ok( f >= 0.5 && f < 1.0, 'returns expected value' );
173173
}
174174
t.end();
175175
});
176176

177177
tape( 'if provided `+0`, the function returns `[0,0]`', opts, function test( t ) {
178178
var f = frexp( 0.0 );
179-
t.deepEqual( f, [0.0, 0], 'returns [0,0]' );
179+
t.deepEqual( f, [ 0.0, 0 ], 'returns expected value' );
180180
t.end();
181181
});
182182

183183
tape( 'if provided `-0`, the function returns `[-0,0]`', opts, function test( t ) {
184184
var f = frexp( -0.0 );
185-
t.strictEqual( isNegativeZero( f[0] ), true, 'first element is -0' );
186-
t.deepEqual( f, [-0.0, 0], 'returns [-0,0]' );
185+
t.strictEqual( isNegativeZero( f[0] ), true, 'returns expected value' );
186+
t.deepEqual( f, [ -0.0, 0 ], 'returns expected value' );
187187
t.end();
188188
});
189189

190190
tape( 'if provided `+infinity`, the function returns `[+infinity,0]`', opts, function test( t ) {
191191
var f = frexp( PINF );
192-
t.deepEqual( f, [PINF, 0], 'returns [+inf,0]' );
192+
t.deepEqual( f, [ PINF, 0 ], 'returns expected value' );
193193
t.end();
194194
});
195195

196196
tape( 'if provided `-infinity`, the function returns `[-infinity,0]`', opts, function test( t ) {
197197
var f = frexp( NINF );
198-
t.deepEqual( f, [NINF, 0], 'returns [-inf,0]' );
198+
t.deepEqual( f, [ NINF, 0 ], 'returns expected value' );
199199
t.end();
200200
});
201201

202202
tape( 'if provided `NaN`, the function returns `[NaN,0]`', opts, function test( t ) {
203203
var f = frexp( NaN );
204-
t.strictEqual( isnan( f[0] ), true, 'first element is NaN' );
205-
t.strictEqual( f[ 1 ], 0, 'second element is 0' );
204+
t.strictEqual( isnan( f[0] ), true, 'returns expected value' );
205+
t.strictEqual( f[ 1 ], 0, 'returns expected value' );
206206
t.end();
207207
});

0 commit comments

Comments
 (0)