Skip to content

Commit dacac52

Browse files
committed
Auto-generated commit
1 parent 2e566d2 commit dacac52

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

CHANGELOG.md

Lines changed: 2 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-02-03)
7+
## Unreleased (2025-02-05)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`d77378e`](https://github.com/stdlib-js/stdlib/commit/d77378e620ed84e270e9f1b4b416f42a32965342) - **test:** add tests to achieve 100% code coverage in `stats/base/max` [(#5067)](https://github.com/stdlib-js/stdlib/pull/5067) _(by Aayush Khanna)_
2526
- [`66a14d0`](https://github.com/stdlib-js/stdlib/commit/66a14d098c441ecec3909ef07737cf5d698d0456) - **docs:** minor changes in docs of `stats/base/max` [(#5043)](https://github.com/stdlib-js/stdlib/pull/5043) _(by Aayush Khanna)_
2627
- [`7793d43`](https://github.com/stdlib-js/stdlib/commit/7793d4347d1e97f221b05522e724dd26ebb96ca7) - **feat:** add support for accessor arrays and refactor `stats/base/max` [(#5008)](https://github.com/stdlib-js/stdlib/pull/5008) _(by Aayush Khanna)_
2728
- [`e0799e5`](https://github.com/stdlib-js/stdlib/commit/e0799e5da799e74ff3369f652f4380aeb8dfe7fc) - **refactor:** update paths _(by Athan Reines)_

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Marcus Fantham <mfantham@users.noreply.github.com>
6363
Matt Cochrane <matthew.cochrane.eng@gmail.com>
6464
Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
6565
Milan Raj <rajsite@users.noreply.github.com>
66+
Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
6667
Mohammad Kaif <mdkaifprofession@gmail.com>
6768
Momtchil Momtchev <momtchil@momtchev.com>
6869
Muhammad Haris <harriskhan047@outlook.com>

test/test.main.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,18 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the f
218218
t.end();
219219
});
220220

221+
tape( 'if provided a `stride` parameter equal to `0`, the function returns the first element (accessors)', function test( t ) {
222+
var x;
223+
var v;
224+
225+
x = [ 1.0, -2.0, -4.0, 5.0, 3.0 ];
226+
227+
v = max( x.length, toAccessorArray( x ), 0 );
228+
t.strictEqual( v, 1.0, 'returns expected value' );
229+
230+
t.end();
231+
});
232+
221233
tape( 'the function supports view offsets', function test( t ) {
222234
var x0;
223235
var x1;

test/test.ndarray.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,18 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the f
196196
t.end();
197197
});
198198

199+
tape( 'if provided a `stride` parameter equal to `0`, the function returns the first indexed element (accessors)', function test( t ) {
200+
var x;
201+
var v;
202+
203+
x = [ 1.0, -2.0, -4.0, 5.0, 3.0 ];
204+
205+
v = max( x.length, toAccessorArray( x ), 0, 0 );
206+
t.strictEqual( v, 1.0, 'returns expected value' );
207+
208+
t.end();
209+
});
210+
199211
tape( 'the function supports an `offset` parameter', function test( t ) {
200212
var x;
201213
var v;

0 commit comments

Comments
 (0)