Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Aug 24, 2024
1 parent feceff2 commit 24b7ace
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 37 deletions.
1 change: 0 additions & 1 deletion .github/.keepalive

This file was deleted.

49 changes: 35 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,40 @@

> Package changelog.
<section class="release" id="unreleased">

## Unreleased (2024-08-24)

<section class="commits">

### Commits

<details>

- [`0ab9fc7`](https://github.com/stdlib-js/stdlib/commit/0ab9fc7de86012c670189711b6c6627b41119537) - **test:** add and modify tests [(#2830)](https://github.com/stdlib-js/stdlib/pull/2830) _(by Gunj Joshi)_

</details>

</section>

<!-- /.commits -->

<section class="contributors">

### Contributors

A total of 1 person contributed to this release. Thank you to this contributor:

- Gunj Joshi

</section>

<!-- /.contributors -->

</section>

<!-- /.release -->

<section class="release" id="v0.3.0">

## 0.3.0 (2024-07-28)
Expand All @@ -26,18 +60,6 @@

<!-- /.bug-fixes -->

<section class="issues">

### Closed Issues

This release closes the following issue:

[#stdlib-js/todo#2113](https://github.com/stdlib-js/stdlib/issues/stdlib-js/todo#2113)

</section>

<!-- /.issues -->

<section class="commits">

### Commits
Expand Down Expand Up @@ -114,8 +136,7 @@ No changes reported for this release.

### BREAKING CHANGES

- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9): update minimum TypeScript version
- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9): update minimum TypeScript version to 4.1
- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9): update minimum TypeScript version to 4.1

- To migrate, users should upgrade their TypeScript version to at least version 4.1.

Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Marcus Fantham <mfantham@users.noreply.github.com>
Matt Cochrane <matthew.cochrane.eng@gmail.com>
Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
Milan Raj <rajsite@users.noreply.github.com>
Mohammad Kaif <98884589+Kaif987@users.noreply.github.com>
Momtchil Momtchev <momtchil@momtchev.com>
Muhammad Haris <harriskhan047@outlook.com>
Naresh Jagadeesan <naresh.naresh000@gmail.com>
Expand All @@ -70,6 +71,7 @@ Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
Rutam <138517416+performant23@users.noreply.github.com>
Ryan Seal <splrk@users.noreply.github.com>
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
SarthakPaandey <145528240+SarthakPaandey@users.noreply.github.com>
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
Shivam <11shivam00@gmail.com>
Expand Down
20 changes: 10 additions & 10 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ tape( 'the function returns `NaN` if provided a `NaN`', function test( t ) {
var v;

v = maxabs( NaN, 3.14 );
t.strictEqual( isnan( v ), true, 'returns NaN' );
t.strictEqual( isnan( v ), true, 'returns expected value' );

v = maxabs( 3.14, NaN );
t.strictEqual( isnan( v ), true, 'returns NaN' );
t.strictEqual( isnan( v ), true, 'returns expected value' );

v = maxabs( NaN );
t.strictEqual( isnan( v ), true, 'returns NaN' );
v = maxabs( NaN, NaN );
t.strictEqual( isnan( v ), true, 'returns expected value' );

t.end();
});
Expand All @@ -54,10 +54,10 @@ tape( 'the function returns `+Infinity` if provided `+Infinity`', function test(
var v;

v = maxabs( PINF, 3.14 );
t.strictEqual( v, PINF, 'returns +infinity' );
t.strictEqual( v, PINF, 'returns expected value' );

v = maxabs( 3.14, PINF );
t.strictEqual( v, PINF, 'returns +infinity' );
t.strictEqual( v, PINF, 'returns expected value' );

t.end();
});
Expand All @@ -66,16 +66,16 @@ tape( 'the function returns a correctly signed zero', function test( t ) {
var v;

v = maxabs( +0.0, -0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns +0' );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );

v = maxabs( -0.0, +0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns +0' );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );

v = maxabs( -0.0, -0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns +0' );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );

v = maxabs( +0.0, +0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns +0' );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );

t.end();
});
Expand Down
33 changes: 21 additions & 12 deletions test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,25 @@ tape( 'the function returns `NaN` if provided a `NaN`', opts, function test( t )
var v;

v = maxabs( NaN, 3.14 );
t.strictEqual( isnan( v ), true, 'returns NaN' );
t.strictEqual( isnan( v ), true, 'returns expected value' );

v = maxabs( 3.14, NaN );
t.strictEqual( isnan( v ), true, 'returns NaN' );
t.strictEqual( isnan( v ), true, 'returns expected value' );

v = maxabs( NaN, NaN );
t.strictEqual( isnan( v ), true, 'returns expected value' );

t.end();
});

tape( 'the function returns `+Infinity` if provided `+Infinity`', opts, function test( t ) {
var v;

v = maxabs( PINF, 3.14 );
t.strictEqual( v, PINF, 'returns expected value' );

v = maxabs( 3.14, PINF );
t.strictEqual( v, PINF, 'returns expected value' );

t.end();
});
Expand All @@ -60,16 +75,16 @@ tape( 'the function returns a correctly signed zero', opts, function test( t ) {
var v;

v = maxabs( +0.0, -0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns +0' );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );

v = maxabs( -0.0, +0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns +0' );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );

v = maxabs( -0.0, -0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns +0' );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );

v = maxabs( +0.0, +0.0 );
t.strictEqual( isPositiveZero( v ), true, 'returns +0' );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );

t.end();
});
Expand All @@ -83,11 +98,5 @@ tape( 'the function returns the maximum absolute value', opts, function test( t
v = maxabs( -4.2, 3.14 );
t.strictEqual( v, 4.2, 'returns expected value' );

v = maxabs( PINF, 3.14 );
t.strictEqual( v, PINF, 'returns expected value' );

v = maxabs( 3.14, PINF );
t.strictEqual( v, PINF, 'returns expected value' );

t.end();
});

0 comments on commit 24b7ace

Please sign in to comment.