Skip to content

Commit 786b895

Browse files
committed
Auto-generated commit
1 parent 5c9925e commit 786b895

File tree

5 files changed

+27
-22
lines changed

5 files changed

+27
-22
lines changed

.github/.keepalive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-08-11T00:44:29.593Z
1+
2025-08-18T00:49:53.251Z

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-08-11)
7+
## Unreleased (2025-08-18)
88

99
<section class="features">
1010

@@ -34,6 +34,8 @@ A total of 2 issues were closed in this release:
3434

3535
<details>
3636

37+
- [`fc438e0`](https://github.com/stdlib-js/stdlib/commit/fc438e0edbad0689d6923d6f3edb959b96597662) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
38+
- [`9c21fd2`](https://github.com/stdlib-js/stdlib/commit/9c21fd20ef8b8a6a88abb96d80ea6d8e4c5434eb) - **test:** use .strictEqual() instead of .equal() _(by Philipp Burckhardt)_
3739
- [`a1e230f`](https://github.com/stdlib-js/stdlib/commit/a1e230f29297caa89880e9c194c615a0400fb7bc) - **chore:** clean up cppcheck-suppress comments _(by Karan Anand)_
3840
- [`e5238bb`](https://github.com/stdlib-js/stdlib/commit/e5238bb96b7138d346ea0db8b535aec64c8a856c) - **bench:** refactor random number generation in `stats/base/dists/laplace` [(#5270)](https://github.com/stdlib-js/stdlib/pull/5270) _(by GK Bishnoi)_
3941
- [`e61b1de`](https://github.com/stdlib-js/stdlib/commit/e61b1dee3334bacf30d213de5b5f1c7868c0753b) - **docs:** clean-up of C docstrings _(by Philipp Burckhardt)_

CONTRIBUTORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Abhishek G <166795493+AbhishekG-Codes@users.noreply.github.com>
1313
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
1414
Adarsh Palaskar <adarshpalaskar99@gmail.com>
1515
Aditya Sapra <adityaework@gmail.com>
16+
Aditya Singh <adityasinghk099@gmail.com>
1617
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1718
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1819
Ahmed Khaled <kahmd1444@gmail.com>
@@ -121,6 +122,7 @@ Muhammad Haris <harriskhan047@outlook.com>
121122
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
122123
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
123124
NEEKUorAAYUSH <aayush10072004@gmail.com>
125+
Nakul Krishnakumar <nakulkrishnakumar86@gmail.com>
124126
Naresh Jagadeesan <naresh.naresh000@gmail.com>
125127
Naveen Kumar <stupiddint@gmail.com>
126128
Neeraj Pathak <neerajrpathak710@gmail.com>
@@ -164,6 +166,7 @@ Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
164166
Ryan Seal <splrk@users.noreply.github.com>
165167
Rylan Yang <137365285+rylany27@users.noreply.github.com>
166168
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
169+
SAUJANYA MAGARDE <162047941+SaujanyaMagarde@users.noreply.github.com>
167170
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
168171
Sachin Raj <120590207+schnrj@users.noreply.github.com>
169172
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>

test/test.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,35 +44,35 @@ tape( 'main export is a function', function test( t ) {
4444

4545
tape( 'if provided `NaN` for any parameter, the function returns `NaN`', function test( t ) {
4646
var y = entropy( NaN, 1.0 );
47-
t.equal( isnan( y ), true, 'returns NaN' );
47+
t.strictEqual( isnan( y ), true, 'returns expected value' );
4848
y = entropy( 1.0, NaN );
49-
t.equal( isnan( y ), true, 'returns NaN' );
49+
t.strictEqual( isnan( y ), true, 'returns expected value' );
5050
t.end();
5151
});
5252

5353
tape( 'if provided a nonpositive `b`, the function returns `NaN`', function test( t ) {
5454
var y;
5555

5656
y = entropy( 2.0, 0.0 );
57-
t.equal( isnan( y ), true, 'returns NaN' );
57+
t.strictEqual( isnan( y ), true, 'returns expected value' );
5858

5959
y = entropy( 2.0, -1.0 );
60-
t.equal( isnan( y ), true, 'returns NaN' );
60+
t.strictEqual( isnan( y ), true, 'returns expected value' );
6161

6262
y = entropy( 2.0, -1.0 );
63-
t.equal( isnan( y ), true, 'returns NaN' );
63+
t.strictEqual( isnan( y ), true, 'returns expected value' );
6464

6565
y = entropy( 1.0, NINF );
66-
t.equal( isnan( y ), true, 'returns NaN' );
66+
t.strictEqual( isnan( y ), true, 'returns expected value' );
6767

6868
y = entropy( PINF, NINF );
69-
t.equal( isnan( y ), true, 'returns NaN' );
69+
t.strictEqual( isnan( y ), true, 'returns expected value' );
7070

7171
y = entropy( NINF, NINF );
72-
t.equal( isnan( y ), true, 'returns NaN' );
72+
t.strictEqual( isnan( y ), true, 'returns expected value' );
7373

7474
y = entropy( NaN, NINF );
75-
t.equal( isnan( y ), true, 'returns NaN' );
75+
t.strictEqual( isnan( y ), true, 'returns expected value' );
7676

7777
t.end();
7878
});
@@ -93,7 +93,7 @@ tape( 'the function returns the differential entropy of a Laplace distribution',
9393
y = entropy( mu[i], b[i] );
9494
if ( expected[i] !== null ) {
9595
if ( y === expected[i] ) {
96-
t.equal( y, expected[i], 'mu:'+mu[i]+', b: '+b[i]+', y: '+y+', expected: '+expected[i] );
96+
t.strictEqual( y, expected[i], 'mu:'+mu[i]+', b: '+b[i]+', y: '+y+', expected: '+expected[i] );
9797
} else {
9898
delta = abs( y - expected[ i ] );
9999
tol = 4.0 * EPS * abs( expected[ i ] );

test/test.native.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,35 +53,35 @@ tape( 'main export is a function', opts, function test( t ) {
5353

5454
tape( 'if provided `NaN` for any parameter, the function returns `NaN`', opts, function test( t ) {
5555
var y = entropy( NaN, 1.0 );
56-
t.equal( isnan( y ), true, 'returns NaN' );
56+
t.strictEqual( isnan( y ), true, 'returns expected value' );
5757
y = entropy( 1.0, NaN );
58-
t.equal( isnan( y ), true, 'returns NaN' );
58+
t.strictEqual( isnan( y ), true, 'returns expected value' );
5959
t.end();
6060
});
6161

6262
tape( 'if provided a nonpositive `b`, the function returns `NaN`', opts, function test( t ) {
6363
var y;
6464

6565
y = entropy( 2.0, 0.0 );
66-
t.equal( isnan( y ), true, 'returns NaN' );
66+
t.strictEqual( isnan( y ), true, 'returns expected value' );
6767

6868
y = entropy( 2.0, -1.0 );
69-
t.equal( isnan( y ), true, 'returns NaN' );
69+
t.strictEqual( isnan( y ), true, 'returns expected value' );
7070

7171
y = entropy( 2.0, -1.0 );
72-
t.equal( isnan( y ), true, 'returns NaN' );
72+
t.strictEqual( isnan( y ), true, 'returns expected value' );
7373

7474
y = entropy( 1.0, NINF );
75-
t.equal( isnan( y ), true, 'returns NaN' );
75+
t.strictEqual( isnan( y ), true, 'returns expected value' );
7676

7777
y = entropy( PINF, NINF );
78-
t.equal( isnan( y ), true, 'returns NaN' );
78+
t.strictEqual( isnan( y ), true, 'returns expected value' );
7979

8080
y = entropy( NINF, NINF );
81-
t.equal( isnan( y ), true, 'returns NaN' );
81+
t.strictEqual( isnan( y ), true, 'returns expected value' );
8282

8383
y = entropy( NaN, NINF );
84-
t.equal( isnan( y ), true, 'returns NaN' );
84+
t.strictEqual( isnan( y ), true, 'returns expected value' );
8585

8686
t.end();
8787
});
@@ -102,7 +102,7 @@ tape( 'the function returns the differential entropy of a Laplace distribution',
102102
y = entropy( mu[i], b[i] );
103103
if ( expected[i] !== null ) {
104104
if ( y === expected[i] ) {
105-
t.equal( y, expected[i], 'mu:'+mu[i]+', b: '+b[i]+', y: '+y+', expected: '+expected[i] );
105+
t.strictEqual( y, expected[i], 'mu:'+mu[i]+', b: '+b[i]+', y: '+y+', expected: '+expected[i] );
106106
} else {
107107
delta = abs( y - expected[ i ] );
108108
tol = 4.0 * EPS * abs( expected[ i ] );

0 commit comments

Comments
 (0)