Skip to content

Commit 0ee478e

Browse files
committed
fix: errors
1 parent 4c803d1 commit 0ee478e

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

lib/node_modules/@stdlib/math/base/special/wrapf/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
> y = {{alias}}( 3.14, 0.0, 3.0 )
3434
~0.14
3535
> y = {{alias}}( -0.0, 0.0, 5.0 )
36-
0.0
36+
~0.0
3737
> y = {{alias}}( 0.0, -3.14, -0.0 )
38-
-3.14
38+
~-3.14
3939
> y = {{alias}}( NaN, 0.0, 5.0 )
4040
NaN
4141

lib/node_modules/@stdlib/math/base/special/wrapf/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function wrapf( v, min, max ) {
8787

8888
// Simple case where value is already within range...
8989
if ( min <= v && v < max ) {
90-
return v;
90+
return float64ToFloat32( v );
9191
}
9292

9393
// Perform range reduction...

lib/node_modules/@stdlib/math/base/special/wrapf/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ tape( 'if provided a value which is between a minimum value (inclusive) and a ma
6666
var v;
6767

6868
v = wrapf( 3.14, 0.0, 5.0 );
69-
t.strictEqual( v, 3.14, 'returns expected value' );
69+
t.strictEqual( float64ToFloat32( v ), 3.14, 'returns expected value' );
7070

7171
v = wrapf( -3.14, -10.0, 15.0 );
72-
t.strictEqual( v, -3.14, 'returns expected value' );
72+
t.strictEqual( float64ToFloat32( v ), -3.14, 'returns expected value' );
7373

7474
v = wrapf( 3.14, 3.14, 5.0 );
75-
t.strictEqual( v, 3.14, 'returns expected value' );
75+
t.strictEqual( float64ToFloat32( v ), 3.14, 'returns expected value' );
7676

7777
v = wrapf( 3.13, 0.0, 3.14 );
78-
t.strictEqual( v, 3.13, 'returns expected value' );
78+
t.strictEqual( float64ToFloat32( v ), 3.13, 'returns expected value' );
7979

8080
t.end();
8181
});
@@ -86,8 +86,8 @@ tape( 'if provided a value which less than a minimum value or greater than or eq
8686
v = wrapf( 13.00, 0.0, 5.0 );
8787
t.equal( v, float64ToFloat32( 3.00 ), 'returns expected value' );
8888

89-
v = wrapf( -3.15, 0.0, 5.0 );
90-
t.equal( v, float64ToFloat32( 1.85 ), 'returns expected value' );
89+
v = wrapf( -3.1, 0.0, 5.0 );
90+
t.equal( v, float64ToFloat32( 1.90 ), 'returns expected value' );
9191

9292
v = wrapf( -13.1, -10.0, 15.0 );
9393
t.equal( v, float64ToFloat32( 11.90 ), 'returns expected value' );

lib/node_modules/@stdlib/math/base/special/wrapf/test/test.native.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,28 +75,28 @@ tape( 'if provided a value which is between a minimum value (inclusive) and a ma
7575
var v;
7676

7777
v = wrapf( 3.14, 0.0, 5.0 );
78-
t.strictEqual( v, 3.14, 'returns expected value' );
78+
t.strictEqual( float64ToFloat32( v ), 3.14, 'returns expected value' );
7979

8080
v = wrapf( -3.14, -10.0, 15.0 );
81-
t.strictEqual( v, -3.14, 'returns expected value' );
81+
t.strictEqual( float64ToFloat32( v ), -3.14, 'returns expected value' );
8282

8383
v = wrapf( 3.14, 3.14, 5.0 );
84-
t.strictEqual( v, 3.14, 'returns expected value' );
84+
t.strictEqual( float64ToFloat32( v ), 3.14, 'returns expected value' );
8585

8686
v = wrapf( 3.13, 0.0, 3.14 );
87-
t.strictEqual( v, 3.13, 'returns expected value' );
87+
t.strictEqual( float64ToFloat32( v ), 3.13, 'returns expected value' );
8888

8989
t.end();
9090
});
9191

92-
tape( 'if provided a value which less than a minimum value or greater than or equal to a maximum value, the function wraps the value using modulo arithmetic', function test( t ) {
92+
tape( 'if provided a value which less than a minimum value or greater than or equal to a maximum value, the function wraps the value using modulo arithmetic', opts, function test( t ) {
9393
var v;
9494

9595
v = wrapf( 13.00, 0.0, 5.0 );
9696
t.equal( v, float64ToFloat32( 3.00 ), 'returns expected value' );
9797

98-
v = wrapf( -3.15, 0.0, 5.0 );
99-
t.equal( v, float64ToFloat32( 1.85 ), 'returns expected value' );
98+
v = wrapf( -3.1, 0.0, 5.0 );
99+
t.equal( v, float64ToFloat32( 1.90 ), 'returns expected value' );
100100

101101
v = wrapf( -13.1, -10.0, 15.0 );
102102
t.equal( v, float64ToFloat32( 11.90 ), 'returns expected value' );

0 commit comments

Comments
 (0)