Skip to content

Commit 89820ed

Browse files
travisbreaksclaude
andcommitted
chore: revert undesired changes to ahavercos-by test
Restore original `new Array(5)` sparse array construction and eslint-disable directives per maintainer review feedback. Only the is-empty-collection test fix remains. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 851c73e commit 89820ed

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • lib/node_modules/@stdlib/math/strided/special/ahavercos-by/test

lib/node_modules/@stdlib/math/strided/special/ahavercos-by/test/test.main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ tape( 'the function computes the inverse half-value versed cosine via a callback
7474
ahavercosBy( x.length, x, 1, y, 1, accessor );
7575
t.deepEqual( y, expected, 'deep equal' );
7676

77-
x = [];
78-
x.length = 5; // sparse array
77+
// eslint-disable-next-line stdlib/no-new-array
78+
x = new Array( 5 ); // sparse array
7979
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8080

8181
expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8282

8383
ahavercosBy( x.length, x, 1, y, 1, accessor );
8484
t.deepEqual( y, expected, 'deep equal' );
8585

86-
x = [];
87-
x.length = 5; // sparse array
86+
// eslint-disable-next-line stdlib/no-new-array
87+
x = new Array( 5 ); // sparse array
8888
x[ 2 ] = rand();
8989
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
9090

0 commit comments

Comments
 (0)