Skip to content

Commit 1334b8f

Browse files
committed
Auto-generated commit
1 parent ac212ed commit 1334b8f

6 files changed

Lines changed: 72 additions & 103 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-05-27)
7+
## Unreleased (2025-06-12)
88

99
<section class="reverts">
1010

@@ -22,6 +22,8 @@
2222

2323
<details>
2424

25+
- [`a2cfe0e`](https://github.com/stdlib-js/stdlib/commit/a2cfe0e3fe5167301372d22dbae8e8b19917f77c) - **test:** update test messages according to current project conventions _(by Karan Anand)_
26+
- [`c5ccaff`](https://github.com/stdlib-js/stdlib/commit/c5ccaff1e7697684168c649fd87882b259664c73) - **test:** remove the use of `IS_BROWSER` from test files _(by Karan Anand)_
2527
- [`63b7891`](https://github.com/stdlib-js/stdlib/commit/63b7891a03385347320f89e6fe0458f3b5fd198c) - **refactor:** use in-house macros for building native addon bindings _(by Karan Anand)_
2628
- [`630ddb7`](https://github.com/stdlib-js/stdlib/commit/630ddb777824b5f6e501fda6dadf4ce41dccb964) - **test:** replace equal with strictEqual _(by Karan Anand)_
2729
- [`2ea848b`](https://github.com/stdlib-js/stdlib/commit/2ea848b62b686e1e9d861f7df25ece23a7d80798) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_

CONTRIBUTORS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
2222
Aman Bhansali <bhansali.1@iitj.ac.in>
2323
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
2424
Amit Jimiwal <amitjimiwal45@gmail.com>
25+
Annamalai Prabu <apfossdev@gmail.com>
2526
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
2627
Anshu Kumar <contact.anshukumar@protonmail.com>
2728
Anudeep Sanapala <anudeep0306@gmail.com>
@@ -38,6 +39,7 @@ Daniel Killenberger <daniel.killenberger@gmail.com>
3839
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
3940
Debashis Maharana <debashismaharana7854@gmail.com>
4041
Deep Trivedi <128926685+thedeeppp@users.noreply.github.com>
42+
Deepak Singh <78257493+Deepak91168@users.noreply.github.com>
4143
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
4244
Dev Goel <135586571+corsairier@users.noreply.github.com>
4345
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
@@ -53,6 +55,7 @@ Frank Kovacs <fran70kk@gmail.com>
5355
GK Bishnoi <gkishan1kyt@gmail.com>
5456
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
5557
Gaurav <gaurav70380@gmail.com>
58+
Gautam Kaushik <162317291+Kaushikgtm@users.noreply.github.com>
5659
Gautam sharma <gautamkrishnasharma1@gmail.com>
5760
Girish Garg <garggirish2020@gmail.com>
5861
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
@@ -80,6 +83,7 @@ Joris Labie <joris.labie1@gmail.com>
8083
Justin Dennison <justin1dennison@gmail.com>
8184
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
8285
Karan Anand <anandkarancompsci@gmail.com>
86+
Karan Vasudevamurthy <karanlvm123@gmail.com>
8387
Karan Yadav <77043443+karanBRAVO@users.noreply.github.com>
8488
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
8589
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
@@ -117,6 +121,7 @@ Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
117121
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
118122
Ori Miles <97595296+orimiles5@users.noreply.github.com>
119123
Philipp Burckhardt <pburckhardt@outlook.com>
124+
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
120125
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
121126
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
122127
Pranav Goswami <pranavchiku11@gmail.com>
@@ -172,7 +177,9 @@ Tanishq Ahuja <68651083+TheGEN1U5@users.noreply.github.com>
172177
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
173178
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
174179
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
180+
Tushar Bhardwaj <155543597+TusharBhardwaj441@users.noreply.github.com>
175181
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
182+
Ujjwal Kirti <64329707+ujjwalkirti@users.noreply.github.com>
176183
Utkarsh <http://utkarsh11105@gmail.com>
177184
Utkarsh Raj <rajutkarsh2505@gmail.com>
178185
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"@stdlib/array-float64": "^0.2.2",
5959
"@stdlib/assert-has-own-property": "^0.2.2",
6060
"@stdlib/assert-is-array": "^0.2.2",
61-
"@stdlib/assert-is-browser": "^0.2.2",
6261
"@stdlib/assert-is-float64array": "^0.2.2",
6362
"@stdlib/constants-float64-exponent-bias": "^0.2.2",
6463
"@stdlib/constants-float64-ninf": "^0.2.2",

test/test.assign.js

Lines changed: 32 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var IS_BROWSER = require( '@stdlib/assert-is-browser' );
2524
var NINF = require( '@stdlib/constants-float64-ninf' );
2625
var PINF = require( '@stdlib/constants-float64-pinf' );
2726
var BIAS = require( '@stdlib/constants-float64-exponent-bias' );
@@ -63,8 +62,8 @@ tape( 'the function splits a floating-point number into a normalized fraction an
6362
for ( i = 0; i < x.length; i++ ) {
6463
out = new Float64Array( 2 );
6564
f = frexp( x[i], out, 1, 0 );
66-
t.equal( f, out, 'returns output array' );
67-
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' );
6867
}
6968
t.end();
7069
});
@@ -81,8 +80,8 @@ tape( 'the function splits a floating-point number into a normalized fraction an
8180
for ( i = 0; i < x.length; i++ ) {
8281
out = new Float64Array( 2 );
8382
f = frexp( x[i], out, 1, 0 );
84-
t.equal( f, out, 'returns output array' );
85-
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' );
8685
}
8786
t.end();
8887
});
@@ -99,8 +98,8 @@ tape( 'the function splits a floating-point number into a normalized fraction an
9998
for ( i = 0; i < x.length; i++ ) {
10099
out = new Float64Array( 2 );
101100
f = frexp( x[i], out, 1, 0 );
102-
t.equal( f, out, 'returns output array' );
103-
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' );
104103
}
105104
t.end();
106105
});
@@ -117,14 +116,13 @@ tape( 'the function splits a floating-point number into a normalized fraction an
117116
for ( i = 0; i < x.length; i++ ) {
118117
out = new Float64Array( 2 );
119118
f = frexp( x[i], out, 1, 0 );
120-
t.equal( f, out, 'returns output array' );
121-
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' );
122121
}
123122
t.end();
124123
});
125124

126125
tape( 'the returned normalized fraction and exponent satisfy the relation `x = frac * 2**exp`', function test( t ) {
127-
var total;
128126
var sign;
129127
var frac;
130128
var exp;
@@ -133,12 +131,7 @@ tape( 'the returned normalized fraction and exponent satisfy the relation `x = f
133131
var f;
134132
var i;
135133

136-
if ( IS_BROWSER ) {
137-
total = 200;
138-
} else {
139-
total = 1000;
140-
}
141-
for ( i = 0; i < total; i++ ) {
134+
for ( i = 0; i < 1000; i++ ) {
142135
if ( randu() < 0.5 ) {
143136
sign = -1.0;
144137
} else {
@@ -149,20 +142,19 @@ tape( 'the returned normalized fraction and exponent satisfy the relation `x = f
149142
x = sign * frac * pow( 10.0, exp );
150143
out = new Float64Array( 2 );
151144
f = frexp( x, out, 1, 0 );
152-
t.equal( f, out, 'returns output array' );
145+
t.strictEqual( f, out, 'returns output array' );
153146

154147
if ( f[ 1 ] > BIAS ) {
155148
f = f[ 0 ] * pow( 2.0, BIAS ) * pow( 2.0, f[1]-BIAS );
156149
} else {
157150
f = f[ 0 ] * pow( 2.0, f[ 1 ] );
158151
}
159-
t.equal( f, x, 'frac * 2^exp equals ' + x );
152+
t.strictEqual( f, x, 'returns expected value' );
160153
}
161154
t.end();
162155
});
163156

164157
tape( 'the absolute value of the normalized fraction is on the interval `[1/2,1)`', function test( t ) {
165-
var total;
166158
var sign;
167159
var frac;
168160
var exp;
@@ -171,12 +163,7 @@ tape( 'the absolute value of the normalized fraction is on the interval `[1/2,1)
171163
var f;
172164
var i;
173165

174-
if ( IS_BROWSER ) {
175-
total = 200;
176-
} else {
177-
total = 1000;
178-
}
179-
for ( i = 0; i < total; i++ ) {
166+
for ( i = 0; i < 1000; i++ ) {
180167
if ( randu() < 0.5 ) {
181168
sign = -1.0;
182169
} else {
@@ -187,11 +174,11 @@ tape( 'the absolute value of the normalized fraction is on the interval `[1/2,1)
187174
x = sign * frac * pow( 10.0, exp );
188175
out = new Float64Array( 2 );
189176
f = frexp( x, out, 1, 0 );
190-
t.equal( f, out, 'returns output array' );
177+
t.strictEqual( f, out, 'returns output array' );
191178

192179
// Compute the absolute value of the normalized fraction:
193180
f = abs( f[ 0 ] );
194-
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' );
195182
}
196183
t.end();
197184
});
@@ -202,8 +189,8 @@ tape( 'if provided `+0`, the function returns `[0,0]`', function test( t ) {
202189

203190
out = new Float64Array( 2 );
204191
f = frexp( 0.0, out, 1, 0 );
205-
t.equal( f, out, 'returns output array' );
206-
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' );
207194
t.end();
208195
});
209196

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

214201
out = new Float64Array( 2 );
215202
f = frexp( -0.0, out, 1, 0 );
216-
t.equal( f, out, 'returns output array' );
217-
t.equal( isNegativeZero( f[0] ), true, 'first element is -0' );
218-
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' );
219206
t.end();
220207
});
221208

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

226213
out = new Float64Array( 2 );
227214
f = frexp( PINF, out, 1, 0 );
228-
t.equal( f, out, 'returns output array' );
229-
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' );
230217
t.end();
231218
});
232219

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

237224
out = new Float64Array( 2 );
238225
f = frexp( NINF, out, 1, 0 );
239-
t.equal( f, out, 'returns output array' );
240-
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' );
241228
t.end();
242229
});
243230

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

248235
out = new Float64Array( 2 );
249236
f = frexp( NaN, out, 1, 0 );
250-
t.equal( f, out, 'returns output array' );
251-
t.equal( isnan( f[0] ), true, 'first element is NaN' );
252-
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' );
253240
t.end();
254241
});
255242

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

263-
t.equal( f, out, 'returns output array' );
264-
t.equal( f[ 0 ], 0.5, 'has expected first element' );
265-
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' );
266253

267254
t.end();
268255
});
@@ -274,9 +261,9 @@ tape( 'the function supports providing an output typed array', function test( t
274261
out = new Float64Array( 2 );
275262
f = frexp( 4.0, out, 1, 0 );
276263

277-
t.equal( f, out, 'returns output array' );
278-
t.equal( f[ 0 ], 0.5, 'has expected first element' );
279-
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' );
280267

281268
t.end();
282269
});

0 commit comments

Comments
 (0)