Skip to content

Commit 30abf18

Browse files
committed
Auto-generated commit
1 parent b7290c8 commit 30abf18

File tree

7 files changed

+161
-92
lines changed

7 files changed

+161
-92
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,43 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2025-08-15)
8+
9+
<section class="commits">
10+
11+
### Commits
12+
13+
<details>
14+
15+
- [`6f85067`](https://github.com/stdlib-js/stdlib/commit/6f8506775cdf2b3edf740216340ff7a0a82677dc) - **test:** fix malformed test descriptions from strictEqual migration _(by Philipp Burckhardt)_
16+
- [`7add020`](https://github.com/stdlib-js/stdlib/commit/7add0201c13e56a0381926ccfd4073c84eaf2ed4) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
17+
- [`11581aa`](https://github.com/stdlib-js/stdlib/commit/11581aaca8c3cb824cbb92c0c0f80e76890bdb20) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
18+
- [`54da286`](https://github.com/stdlib-js/stdlib/commit/54da28610f5ee6b2aa181addb1775d32f79043ee) - **test:** use .strictEqual() instead of .equal() and fix lint errors _(by Philipp Burckhardt)_
19+
20+
</details>
21+
22+
</section>
23+
24+
<!-- /.commits -->
25+
26+
<section class="contributors">
27+
28+
### Contributors
29+
30+
A total of 1 person contributed to this release. Thank you to this contributor:
31+
32+
- Philipp Burckhardt
33+
34+
</section>
35+
36+
<!-- /.contributors -->
37+
38+
</section>
39+
40+
<!-- /.release -->
41+
542
<section class="release" id="v0.2.1">
643

744
## 0.2.1 (2024-02-25)

CONTRIBUTORS

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ Abdelrahman Samir <60700731+abdelrahman04@users.noreply.github.com>
99
Abdul Kaium <97376242+impawstarlight@users.noreply.github.com>
1010
Abhay Punia <156515195+Hecker165@users.noreply.github.com>
1111
Abhijit Raut <abhijitmraut8010@gmail.com>
12+
Abhishek G <166795493+AbhishekG-Codes@users.noreply.github.com>
1213
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
1314
Adarsh Palaskar <adarshpalaskar99@gmail.com>
1415
Aditya Sapra <adityaework@gmail.com>
16+
Aditya Singh <adityasinghk099@gmail.com>
1517
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1618
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1719
Ahmed Khaled <kahmd1444@gmail.com>
@@ -21,11 +23,18 @@ Ali Salesi <ali_sal1381@yahoo.com>
2123
AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
2224
Aman Bhansali <bhansali.1@iitj.ac.in>
2325
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
26+
Amisha Chhajed <136238836+amishhaa@users.noreply.github.com>
2427
Amit Jimiwal <amitjimiwal45@gmail.com>
28+
Anmol Sah <113588714+anmolsah@users.noreply.github.com>
29+
Annamalai Prabu <apfossdev@gmail.com>
2530
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
2631
Anshu Kumar <contact.anshukumar@protonmail.com>
2732
Anudeep Sanapala <anudeep0306@gmail.com>
33+
Arihant Pal <arihant0pal@gmail.com>
34+
Aryan Bhirud <112156883+AryanBhirud@users.noreply.github.com>
35+
AryanJ18 <18aryanj2006@gmail.com>
2836
Athan Reines <kgryte@gmail.com>
37+
Atharva Patil <124063987+atharva-patil-23@users.noreply.github.com>
2938
Ayaka <73595362+USERSATOSHI@users.noreply.github.com>
3039
Bhavishy Agrawal <90029607+bhavishy2801@users.noreply.github.com>
3140
Brendan Graetz <bguiz@users.noreply.github.com>
@@ -34,10 +43,13 @@ Bryan Elee <rxbryn@gmail.com>
3443
Chinmay Joshi <86140365+JawHawk@users.noreply.github.com>
3544
Christopher Dambamuromo <chridam@gmail.com>
3645
Dan Rose <danoftheroses@gmail.com>
46+
Daniel Hernandez Gomez <156333015+dhernandeez13@users.noreply.github.com>
3747
Daniel Killenberger <daniel.killenberger@gmail.com>
3848
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
3949
Debashis Maharana <debashismaharana7854@gmail.com>
4050
Deep Trivedi <128926685+thedeeppp@users.noreply.github.com>
51+
Deepak Singh <78257493+Deepak91168@users.noreply.github.com>
52+
Deepak Singh <negid0253@gmail.com>
4153
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
4254
Dev Goel <135586571+corsairier@users.noreply.github.com>
4355
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
@@ -53,11 +65,14 @@ Frank Kovacs <fran70kk@gmail.com>
5365
GK Bishnoi <gkishan1kyt@gmail.com>
5466
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
5567
Gaurav <gaurav70380@gmail.com>
68+
Gautam Kaushik <162317291+Kaushikgtm@users.noreply.github.com>
5669
Gautam sharma <gautamkrishnasharma1@gmail.com>
70+
GeoDaoyu <geodaoyu@foxmail.com>
5771
Girish Garg <garggirish2020@gmail.com>
5872
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
5973
Gunj Joshi <gunjjoshi8372@gmail.com>
6074
Gururaj Gurram <gururajgurram1512@gmail.com>
75+
Harishchandra Reddy <harish.7000@gmail.com>
6176
Haroon Rasheed <51189276+haroon26@users.noreply.github.com>
6277
Harsh <harshyadav6078@gmail.com>
6378
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
@@ -80,6 +95,7 @@ Joris Labie <joris.labie1@gmail.com>
8095
Justin Dennison <justin1dennison@gmail.com>
8196
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
8297
Karan Anand <anandkarancompsci@gmail.com>
98+
Karan Vasudevamurthy <karanlvm123@gmail.com>
8399
Karan Yadav <77043443+karanBRAVO@users.noreply.github.com>
84100
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
85101
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
@@ -89,6 +105,7 @@ Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
89105
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
90106
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
91107
Lalit Narayan Yadav <162928571+LalitNarayanYadav@users.noreply.github.com>
108+
Lokesh Ranjan <lokesh.ranjan.phe23@itbhu.ac.in>
92109
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
93110
MANI <77221000+Eternity0207@users.noreply.github.com>
94111
Mahfuza Humayra Mohona <mhmohona@gmail.com>
@@ -104,6 +121,8 @@ Momtchil Momtchev <momtchil@momtchev.com>
104121
Muhammad Haris <harriskhan047@outlook.com>
105122
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
106123
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
124+
NEEKUorAAYUSH <aayush10072004@gmail.com>
125+
Nakul Krishnakumar <nakulkrishnakumar86@gmail.com>
107126
Naresh Jagadeesan <naresh.naresh000@gmail.com>
108127
Naveen Kumar <stupiddint@gmail.com>
109128
Neeraj Pathak <neerajrpathak710@gmail.com>
@@ -117,6 +136,8 @@ Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
117136
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
118137
Ori Miles <97595296+orimiles5@users.noreply.github.com>
119138
Philipp Burckhardt <pburckhardt@outlook.com>
139+
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
140+
Pradyumn Prasad <pradyumnprasad.567@gmail.com>
120141
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
121142
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
122143
Pranav Goswami <pranavchiku11@gmail.com>
@@ -145,21 +166,25 @@ Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
145166
Ryan Seal <splrk@users.noreply.github.com>
146167
Rylan Yang <137365285+rylany27@users.noreply.github.com>
147168
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
169+
SAUJANYA MAGARDE <162047941+SaujanyaMagarde@users.noreply.github.com>
148170
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
149171
Sachin Raj <120590207+schnrj@users.noreply.github.com>
150172
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
151173
Sai Avinash <120403424+nasarobot@users.noreply.github.com>
152174
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
153175
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
154176
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
177+
Satyajeet Chavan <chavansatyajeet2004@gmail.com>
155178
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
156179
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
157180
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
158181
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
159182
Shivam Ahir <11shivam00@gmail.com>
183+
Shivansh <114570926+shiv343@users.noreply.github.com>
160184
Shraddheya Shendre <shendreshraddheya@gmail.com>
161185
Shubh Mehta <93862397+Shubh942@users.noreply.github.com>
162186
Shubham Mishra <shubh622005@gmail.com>
187+
Siddhesh waje <117733253+siddhesh434@users.noreply.github.com>
163188
Sivam Das <100067002+Sivam2313@users.noreply.github.com>
164189
Snehil Shah <snehilshah.989@gmail.com>
165190
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
@@ -172,25 +197,31 @@ Tanishq Ahuja <68651083+TheGEN1U5@users.noreply.github.com>
172197
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
173198
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
174199
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
200+
Tushar Bhardwaj <155543597+TusharBhardwaj441@users.noreply.github.com>
175201
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
202+
Ujjwal Kirti <64329707+ujjwalkirti@users.noreply.github.com>
176203
Utkarsh <http://utkarsh11105@gmail.com>
177204
Utkarsh Raj <rajutkarsh2505@gmail.com>
178205
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
179206
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
207+
Vansh Choudhary <iamvanshchaudhary7@gmail.com>
180208
Vara Rahul Rajana <123227543+rajanarahul93@users.noreply.github.com>
181209
Varad Gupta <varadgupta21@gmail.com>
182210
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
183211
Vivek Maurya <vm8118134@gmail.com>
212+
Wendy Yuchen Sun <wendyyuchensun@gmail.com>
184213
Xiaochuan Ye <tap91624@gmail.com>
185214
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
186215
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
187216
Yugal Kaushik <yugalkaushik14@gmail.com>
188217
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
218+
deepak427 <62477872+deepak427@users.noreply.github.com>
189219
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
190220
ditsu <170345142+ditsus@users.noreply.github.com>
191221
ekambains <bainsinbusiness@gmail.com>
192222
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
193223
iraandrushko <71790513+iraandrushko@users.noreply.github.com>
224+
jsai28 <54253219+jsai28@users.noreply.github.com>
194225
lohithganni <116790357+lohithganni@users.noreply.github.com>
195226
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
196227
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
5959
},
6060
"devDependencies": {
61+
"@stdlib/array-base-zeros": "^0.2.2",
6162
"@stdlib/array-uint32": "^0.2.2",
6263
"@stdlib/assert-is-uint32array": "^0.2.2",
6364
"@stdlib/constants-uint32-max": "^0.2.2",

test/test.discrete_uniform.js

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ tape( 'the function returns pseudorandom numbers (smaller range)', function test
6868
b = 40;
6969
for ( i = 0; i < 1e2; i++ ) {
7070
r = rand( randi, a, b );
71-
t.equal( typeof r, 'number', 'returns a number' );
72-
t.equal( isInteger( r ), true, 'returns an integer' );
73-
t.equal( r >= a && r <= b, true, 'within support: '+r );
71+
t.strictEqual( typeof r, 'number', 'returns expected value' );
72+
t.strictEqual( isInteger( r ), true, 'returns expected value' );
73+
t.strictEqual( r >= a && r <= b, true, 'within support: '+r );
7474
}
7575
t.end();
7676
});
@@ -90,9 +90,9 @@ tape( 'the function returns pseudorandom numbers (smaller range)', function test
9090
b = 40;
9191
for ( i = 0; i < 1e2; i++ ) {
9292
r = rand( randi, a, b );
93-
t.equal( typeof r, 'number', 'returns a number' );
94-
t.equal( isInteger( r ), true, 'returns an integer' );
95-
t.equal( r >= a && r <= b, true, 'within support: '+r );
93+
t.strictEqual( typeof r, 'number', 'returns expected value' );
94+
t.strictEqual( isInteger( r ), true, 'returns expected value' );
95+
t.strictEqual( r >= a && r <= b, true, 'within support: '+r );
9696
}
9797
t.end();
9898
});
@@ -114,9 +114,9 @@ tape( 'the function returns pseudorandom numbers (smaller range)', function test
114114
b = 3;
115115
for ( i = 0; i < 1e2; i++ ) {
116116
r = rand( randi, a, b );
117-
t.equal( typeof r, 'number', 'returns a number' );
118-
t.equal( isInteger( r ), true, 'returns an integer' );
119-
t.equal( r >= a && r <= b, true, 'within support: '+r );
117+
t.strictEqual( typeof r, 'number', 'returns expected value' );
118+
t.strictEqual( isInteger( r ), true, 'returns expected value' );
119+
t.strictEqual( r >= a && r <= b, true, 'within support: '+r );
120120
}
121121
t.end();
122122
});
@@ -131,9 +131,9 @@ tape( 'the function returns pseudorandom numbers (smaller range)', function test
131131
b = floor( randi.MAX/2 ) + 1; // high likelihood of sampling rejection
132132
for ( i = 0; i < 1e3; i++ ) {
133133
r = rand( randi, a, b );
134-
t.equal( typeof r, 'number', 'returns a number' );
135-
t.equal( isInteger( r ), true, 'returns an integer' );
136-
t.equal( r >= a && r <= b, true, 'within support: '+r );
134+
t.strictEqual( typeof r, 'number', 'returns expected value' );
135+
t.strictEqual( isInteger( r ), true, 'returns expected value' );
136+
t.strictEqual( r >= a && r <= b, true, 'within support: '+r );
137137
}
138138
t.end();
139139
});
@@ -148,9 +148,9 @@ tape( 'the function returns pseudorandom numbers (equal range)', function test(
148148
b = randi.MAX + 101;
149149
for ( i = 0; i < 1e2; i++ ) {
150150
r = rand( randi, a, b );
151-
t.equal( typeof r, 'number', 'returns a number' );
152-
t.equal( isInteger( r ), true, 'returns an integer' );
153-
t.equal( r >= a && r <= b, true, 'within support: '+r );
151+
t.strictEqual( typeof r, 'number', 'returns expected value' );
152+
t.strictEqual( isInteger( r ), true, 'returns expected value' );
153+
t.strictEqual( r >= a && r <= b, true, 'within support: '+r );
154154
}
155155
t.end();
156156
});
@@ -168,9 +168,9 @@ tape( 'the function returns pseudorandom numbers (bigger range)', function test(
168168
b = 10;
169169
for ( i = 0; i < 1e2; i++ ) {
170170
r = rand( randi, a, b );
171-
t.equal( typeof r, 'number', 'returns a number' );
172-
t.equal( isInteger( r ), true, 'returns an integer' );
173-
t.equal( r >= a && r <= b, true, 'within support: '+r );
171+
t.strictEqual( typeof r, 'number', 'returns expected value' );
172+
t.strictEqual( isInteger( r ), true, 'returns expected value' );
173+
t.strictEqual( r >= a && r <= b, true, 'within support: '+r );
174174
}
175175
t.end();
176176
});
@@ -193,9 +193,9 @@ tape( 'the function returns pseudorandom numbers (bigger range)', function test(
193193

194194
for ( i = 0; i < 1e2; i++ ) {
195195
r = rand( randi, a, b );
196-
t.equal( typeof r, 'number', 'returns a number' );
197-
t.equal( isInteger( r ), true, 'returns an integer' );
198-
t.equal( r >= a && r <= b, true, 'within support: '+r );
196+
t.strictEqual( typeof r, 'number', 'returns expected value' );
197+
t.strictEqual( isInteger( r ), true, 'returns expected value' );
198+
t.strictEqual( r >= a && r <= b, true, 'within support: '+r );
199199
}
200200
t.end();
201201
});
@@ -218,9 +218,9 @@ tape( 'the function returns pseudorandom numbers (bigger range)', function test(
218218

219219
for ( i = 0; i < 1e2; i++ ) {
220220
r = rand( randi, a, b );
221-
t.equal( typeof r, 'number', 'returns a number' );
222-
t.equal( isInteger( r ), true, 'returns an integer' );
223-
t.equal( r >= a && r <= b, true, 'within support: '+r );
221+
t.strictEqual( typeof r, 'number', 'returns expected value' );
222+
t.strictEqual( isInteger( r ), true, 'returns expected value' );
223+
t.strictEqual( r >= a && r <= b, true, 'within support: '+r );
224224
}
225225
t.end();
226226
});
@@ -238,9 +238,9 @@ tape( 'the function returns pseudorandom numbers (bigger range)', function test(
238238
b = 1e2 + 3;
239239
for ( i = 0; i < 1e2; i++ ) {
240240
r = rand( randi, a, b );
241-
t.equal( typeof r, 'number', 'returns a number' );
242-
t.equal( isInteger( r ), true, 'returns an integer' );
243-
t.equal( r >= a && r <= b, true, 'within support: '+r );
241+
t.strictEqual( typeof r, 'number', 'returns expected value' );
242+
t.strictEqual( isInteger( r ), true, 'returns expected value' );
243+
t.strictEqual( r >= a && r <= b, true, 'within support: '+r );
244244
}
245245
t.end();
246246
});
@@ -259,9 +259,9 @@ tape( 'the function returns pseudorandom numbers (bigger range)', function test(
259259

260260
for ( i = 0; i < 1e2; i++ ) {
261261
r = rand( randi, a, b );
262-
t.equal( typeof r, 'number', 'returns a number' );
263-
t.equal( isInteger( r ), true, 'returns an integer' );
264-
t.equal( r >= a && r <= b, true, 'within support: '+r );
262+
t.strictEqual( typeof r, 'number', 'returns expected value' );
263+
t.strictEqual( isInteger( r ), true, 'returns expected value' );
264+
t.strictEqual( r >= a && r <= b, true, 'within support: '+r );
265265
}
266266
t.end();
267267
});
@@ -284,9 +284,9 @@ tape( 'the function returns pseudorandom numbers (bigger range)', function test(
284284

285285
for ( i = 0; i < 1e2; i++ ) {
286286
r = rand( randi, a, b );
287-
t.equal( typeof r, 'number', 'returns a number' );
288-
t.equal( isInteger( r ), true, 'returns an integer' );
289-
t.equal( r >= a && r <= b, true, 'within support: '+r );
287+
t.strictEqual( typeof r, 'number', 'returns expected value' );
288+
t.strictEqual( isInteger( r ), true, 'returns expected value' );
289+
t.strictEqual( r >= a && r <= b, true, 'within support: '+r );
290290
}
291291
t.end();
292292
});

0 commit comments

Comments
 (0)