Skip to content

Commit 62c0692

Browse files
committed
Auto-generated commit
1 parent b0c2e5c commit 62c0692

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

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 (2026-04-23)
7+
## Unreleased (2026-04-26)
88

99
<section class="features">
1010

@@ -731,6 +731,7 @@ A total of 96 issues were closed in this release:
731731

732732
<details>
733733

734+
- [`06e1536`](https://github.com/stdlib-js/stdlib/commit/06e1536018d5db9ac1c1373e209501283042dcb1) - **test:** migrate `math/base/special/cabs` to ULP-based testing [(#11758)](https://github.com/stdlib-js/stdlib/pull/11758) _(by Mandeep2333)_
734735
- [`a02b852`](https://github.com/stdlib-js/stdlib/commit/a02b852b2e784220dba5ee181970e8ef3e921d2e) - **test:** migrate `math/base/special/betaln` to ULP-based testing [(#11717)](https://github.com/stdlib-js/stdlib/pull/11717) _(by Mandeep2333)_
735736
- [`bf821ca`](https://github.com/stdlib-js/stdlib/commit/bf821ca698340a14342ae1b12b5ea74b339f6adf) - **chore:** propagate recent fixes to sibling packages [(#11696)](https://github.com/stdlib-js/stdlib/pull/11696) _(by Philipp Burckhardt)_
736737
- [`23d316f`](https://github.com/stdlib-js/stdlib/commit/23d316f6eda9201e0827d9f98ee523f9270d5939) - **bench:** refactor to use dynamic memory allocation in `maths/strided/special` [(#11697)](https://github.com/stdlib-js/stdlib/pull/11697) _(by Uday Kakade)_

base/special/cabs/test/test.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222

2323
var tape = require( 'tape' );
2424
var isnan = require( './../../../../base/assert/is-nan' );
25-
var EPS = require( '@stdlib/constants/float64/eps' );
2625
var PINF = require( '@stdlib/constants/float64/pinf' );
2726
var NINF = require( '@stdlib/constants/float64/ninf' );
28-
var abs = require( './../../../../base/special/abs' );
27+
var isAlmostSameValue = require( '@stdlib/assert/is-almost-same-value' );
2928
var Complex128 = require( '@stdlib/complex/float64/ctor' );
3029
var cabs = require( './../lib' );
3130

@@ -45,8 +44,6 @@ tape( 'main export is a function', function test( t ) {
4544

4645
tape( 'the function computes the absolute value of a complex number', function test( t ) {
4746
var expected;
48-
var delta;
49-
var tol;
5047
var re;
5148
var im;
5249
var y;
@@ -58,13 +55,7 @@ tape( 'the function computes the absolute value of a complex number', function t
5855

5956
for ( i = 0; i < re.length; i++ ) {
6057
y = cabs( new Complex128( re[ i ], im[ i ] ) );
61-
if ( y === expected[ i ] ) {
62-
t.strictEqual( y, expected[ i ], 're: '+re[i]+'. im: '+im[i]+'. Expected: '+expected[i] );
63-
} else {
64-
delta = abs( y - expected[i] );
65-
tol = EPS * abs( expected[i] );
66-
t.ok( delta <= tol, 'within tolerance. re: '+re[i]+'. im: '+im[i]+' y: '+y+'. Expected: '+expected[i]+'. delta: '+delta+'. tol: '+tol+'.' );
67-
}
58+
t.strictEqual( isAlmostSameValue( y, expected[ i ], 1 ), true, 'returns expected value' );
6859
}
6960
t.end();
7061
});

0 commit comments

Comments
 (0)