Skip to content

Commit dfe57f2

Browse files
committed
fix: lint errors
1 parent 5997f0b commit dfe57f2

File tree

5 files changed

+42
-46
lines changed

5 files changed

+42
-46
lines changed

lib/node_modules/@stdlib/math/base/special/wrapf/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Wrap a value on the half-open interval `[min,max)` for single-precision floating
4646

4747
```javascript
4848
var v = wrapf( 3.14, 0.0, 5.0 );
49-
// returns 3.14
49+
// returns ~3.14
5050

5151
v = wrapf( -3.14, 0.0, 5.0 );
5252
// returns ~1.86
@@ -158,7 +158,7 @@ Wraps a value on the half-open interval `[min,max)` for single-precision floatin
158158

159159
```c
160160
float v = stdlib_base_wrapf( 3.14, 0.0, 5.0 );
161-
// returns 3.14
161+
// returns ~3.14
162162

163163
v = stdlib_base_wrapf( -3.14, 0.0, 5.0 );
164164
// returns ~1.86
@@ -230,10 +230,6 @@ int main( void ) {
230230

231231
<section class="related">
232232

233-
* * *
234-
235-
## See Also
236-
237233
</section>
238234

239235
<!-- /.related -->

lib/node_modules/@stdlib/math/base/special/wrapf/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*
2929
* @example
3030
* var v = wrapf( 3.14, 0.0, 5.0 );
31-
* // returns 3.14
31+
* // returns ~3.14
3232
*
3333
* v = wrapf( -3.14, 0.0, 5.0 );
3434
* // returns ~1.86

lib/node_modules/@stdlib/math/base/special/wrapf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*
3434
* @example
3535
* float v = stdlib_base_wrapf( 3.14f, 0.0f, 5.0f );
36-
* // returns 3.14
36+
* // returns ~3.14
3737
*/
3838
float stdlib_base_wrapf( const float v, const float min, const float max ) {
3939
float delta;

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,25 @@ tape( 'if provided `NaN` for any argument, the function returns `NaN`', function
3939
var v;
4040

4141
v = wrapf( NaN, 0.0, 5.0 );
42-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
42+
t.equal( isnanf( v ), true, 'returns expected value' );
4343

4444
v = wrapf( 0.0, NaN, 5.0 );
45-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
45+
t.equal( isnanf( v ), true, 'returns expected value' );
4646

4747
v = wrapf( 3.14, 0.0, NaN );
48-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
48+
t.equal( isnanf( v ), true, 'returns expected value' );
4949

5050
v = wrapf( NaN, NaN, 5.0 );
51-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
51+
t.equal( isnanf( v ), true, 'returns expected value' );
5252

5353
v = wrapf( NaN, 0.0, NaN );
54-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
54+
t.equal( isnanf( v ), true, 'returns expected value' );
5555

5656
v = wrapf( 3.14, NaN, NaN );
57-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
57+
t.equal( isnanf( v ), true, 'returns expected value' );
5858

5959
v = wrapf( NaN, NaN, NaN );
60-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
60+
t.equal( isnanf( v ), true, 'returns expected value' );
6161

6262
t.end();
6363
});
@@ -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( float64ToFloat32( v ), 3.14, 'returns expected value' );
69+
t.equal( v, float64ToFloat32( 3.14 ), 'returns expected value' );
7070

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

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

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

8080
t.end();
8181
});
@@ -135,16 +135,16 @@ tape( 'the function does not distinguish between positive and negative zero', fu
135135
var v;
136136

137137
v = wrapf( -0.0, 0.0, 5.0 );
138-
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
138+
t.equal( isPositiveZero( v ), true, 'returns expected value' );
139139

140140
v = wrapf( 0.0, -0.0, 5.0 );
141-
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
141+
t.equal( isPositiveZero( v ), true, 'returns expected value' );
142142

143143
v = wrapf( -0.0, -0.0, 5.0 );
144-
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
144+
t.equal( isPositiveZero( v ), true, 'returns expected value' );
145145

146146
v = wrapf( 0.0, 0.0, 5.0 );
147-
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
147+
t.equal( isPositiveZero( v ), true, 'returns expected value' );
148148

149149
t.end();
150150
});
@@ -153,16 +153,16 @@ tape( 'the function returns `NaN` if provided a maximum value which is less than
153153
var v;
154154

155155
v = wrapf( 3.14, 10.0, 0.0 );
156-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
156+
t.equal( isnanf( v ), true, 'returns expected value' );
157157

158158
v = wrapf( 3.14, 10.0, 10.0 );
159-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
159+
t.equal( isnanf( v ), true, 'returns expected value' );
160160

161161
v = wrapf( 3.14, 3.0, 1.0 );
162-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
162+
t.equal( isnanf( v ), true, 'returns expected value' );
163163

164164
v = wrapf( 3.14, 1.0, 1.0 );
165-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
165+
t.equal( isnanf( v ), true, 'returns expected value' );
166166

167167
t.end();
168168
});

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,25 @@ tape( 'if provided `NaN` for any argument, the function returns `NaN`', opts, fu
4848
var v;
4949

5050
v = wrapf( NaN, 0.0, 5.0 );
51-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
51+
t.equal( isnanf( v ), true, 'returns expected value' );
5252

5353
v = wrapf( 0.0, NaN, 5.0 );
54-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
54+
t.equal( isnanf( v ), true, 'returns expected value' );
5555

5656
v = wrapf( 3.14, 0.0, NaN );
57-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
57+
t.equal( isnanf( v ), true, 'returns expected value' );
5858

5959
v = wrapf( NaN, NaN, 5.0 );
60-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
60+
t.equal( isnanf( v ), true, 'returns expected value' );
6161

6262
v = wrapf( NaN, 0.0, NaN );
63-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
63+
t.equal( isnanf( v ), true, 'returns expected value' );
6464

6565
v = wrapf( 3.14, NaN, NaN );
66-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
66+
t.equal( isnanf( v ), true, 'returns expected value' );
6767

6868
v = wrapf( NaN, NaN, NaN );
69-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
69+
t.equal( isnanf( v ), true, 'returns expected value' );
7070

7171
t.end();
7272
});
@@ -75,16 +75,16 @@ 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( float64ToFloat32( v ), 3.14, 'returns expected value' );
78+
t.equal( v, float64ToFloat32( 3.14 ), 'returns expected value' );
7979

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

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

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

8989
t.end();
9090
});
@@ -144,16 +144,16 @@ tape( 'the function does not distinguish between positive and negative zero', op
144144
var v;
145145

146146
v = wrapf( -0.0, 0.0, 5.0 );
147-
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
147+
t.equal( isPositiveZero( v ), true, 'returns expected value' );
148148

149149
v = wrapf( 0.0, -0.0, 5.0 );
150-
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
150+
t.equal( isPositiveZero( v ), true, 'returns expected value' );
151151

152152
v = wrapf( -0.0, -0.0, 5.0 );
153-
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
153+
t.equal( isPositiveZero( v ), true, 'returns expected value' );
154154

155155
v = wrapf( 0.0, 0.0, 5.0 );
156-
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
156+
t.equal( isPositiveZero( v ), true, 'returns expected value' );
157157

158158
t.end();
159159
});
@@ -162,16 +162,16 @@ tape( 'the function returns `NaN` if provided a maximum value which is less than
162162
var v;
163163

164164
v = wrapf( 3.14, 10.0, 0.0 );
165-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
165+
t.equal( isnanf( v ), true, 'returns expected value' );
166166

167167
v = wrapf( 3.14, 10.0, 10.0 );
168-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
168+
t.equal( isnanf( v ), true, 'returns expected value' );
169169

170170
v = wrapf( 3.14, 3.0, 1.0 );
171-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
171+
t.equal( isnanf( v ), true, 'returns expected value' );
172172

173173
v = wrapf( 3.14, 1.0, 1.0 );
174-
t.strictEqual( isnanf( v ), true, 'returns expected value' );
174+
t.equal( isnanf( v ), true, 'returns expected value' );
175175

176176
t.end();
177177
});

0 commit comments

Comments
 (0)