Skip to content

Commit 07705bf

Browse files
fix: change in variable name
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 067ef55 commit 07705bf

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var PINF = require( '@stdlib/constants/float32/pinf' );
2626
var NINF = require( '@stdlib/constants/float32/ninf' );
2727
var EPS = require( '@stdlib/constants/float32/eps' );
2828
var abs = require( '@stdlib/math/base/special/abs' );
29-
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
29+
var f32 = require( '@stdlib/number/float64/base/to-float32' );
3030
var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );
3131
var ulpdiff = require( '@stdlib/number/float32/base/ulp-difference' );
3232
var log10f = require( './../lib' );
@@ -60,7 +60,7 @@ tape( 'the function evaluates the common logarithm of `x` (very large positive v
6060
x = veryLargePositive.x;
6161
for ( i = 0; i < x.length; i++ ) {
6262
y = log10f( x[i] );
63-
e = float64ToFloat32( expected[ i ] );
63+
e = f32( expected[ i ] );
6464
if ( y === e ) {
6565
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
6666
} else {
@@ -85,7 +85,7 @@ tape( 'the function evaluates the common logarithm of `x` (large positive values
8585
x = largePositive.x;
8686
for ( i = 0; i < x.length; i++ ) {
8787
y = log10f( x[i] );
88-
e = float64ToFloat32( expected[ i ] );
88+
e = f32( expected[ i ] );
8989
if ( y === e ) {
9090
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
9191
} else {
@@ -110,7 +110,7 @@ tape( 'the function evaluates the common logarithm of `x` (medium positive value
110110
x = mediumPositive.x;
111111
for ( i = 0; i < x.length; i++ ) {
112112
y = log10f( x[i] );
113-
e = float64ToFloat32( expected[ i ] );
113+
e = f32( expected[ i ] );
114114
if ( y === e ) {
115115
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
116116
} else {
@@ -135,7 +135,7 @@ tape( 'the function evaluates the common logarithm of `x` (small positive values
135135
x = smallPositive.x;
136136
for ( i = 0; i < x.length; i++ ) {
137137
y = log10f( x[i] );
138-
e = float64ToFloat32( expected[ i ] );
138+
e = f32( expected[ i ] );
139139
if ( y === e ) {
140140
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
141141
} else {
@@ -160,7 +160,7 @@ tape( 'the function evaluates the common logarithm of `x` (smaller positive valu
160160
x = smaller.x;
161161
for ( i = 0; i < x.length; i++ ) {
162162
y = log10f( x[i] );
163-
e = float64ToFloat32( expected[ i ] );
163+
e = f32( expected[ i ] );
164164
if ( y === e ) {
165165
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
166166
} else {
@@ -185,7 +185,7 @@ tape( 'the function evaluates the common logarithm of `x` (tiny positive values)
185185
x = tinyPositive.x;
186186
for ( i = 0; i < x.length; i++ ) {
187187
y = log10f( x[i] );
188-
e = float64ToFloat32( expected[ i ] );
188+
e = f32( expected[ i ] );
189189
if ( y === e ) {
190190
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
191191
} else {
@@ -210,7 +210,7 @@ tape( 'the function evaluates the common logarithm of `x` (subnormal values)', f
210210
x = subnormal.x;
211211
for ( i = 0; i < x.length; i++ ) {
212212
y = log10f( x[i] );
213-
e = float64ToFloat32( expected[ i ] );
213+
e = f32( expected[ i ] );
214214
if ( y === e ) {
215215
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
216216
} else {

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var PINF = require( '@stdlib/constants/float32/pinf' );
2727
var NINF = require( '@stdlib/constants/float32/ninf' );
2828
var EPS = require( '@stdlib/constants/float32/eps' );
2929
var abs = require( '@stdlib/math/base/special/abs' );
30-
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
30+
var f32 = require( '@stdlib/number/float64/base/to-float32' );
3131
var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );
3232
var tryRequire = require( '@stdlib/utils/try-require' );
3333
var ulpdiff = require( '@stdlib/number/float32/base/ulp-difference' );
@@ -72,8 +72,9 @@ tape( 'the function evaluates the common logarithm of `x` (very large positive v
7272
expected = veryLargePositive.expected;
7373
x = veryLargePositive.x;
7474
for ( i = 0; i < x.length; i++ ) {
75+
x[ i ] = f32( x[ i ]);
7576
y = log10f( x[i] );
76-
e = float64ToFloat32( expected[ i ] );
77+
e = f32( expected[ i ] );
7778
if ( y === e ) {
7879
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
7980
} else {
@@ -98,7 +99,7 @@ tape( 'the function evaluates the common logarithm of `x` (large positive values
9899
x = largePositive.x;
99100
for ( i = 0; i < x.length; i++ ) {
100101
y = log10f( x[i] );
101-
e = float64ToFloat32( expected[ i ] );
102+
e = f32( expected[ i ] );
102103
if ( y === e ) {
103104
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
104105
} else {
@@ -123,7 +124,7 @@ tape( 'the function evaluates the common logarithm of `x` (medium positive value
123124
x = mediumPositive.x;
124125
for ( i = 0; i < x.length; i++ ) {
125126
y = log10f( x[i] );
126-
e = float64ToFloat32( expected[ i ] );
127+
e = f32( expected[ i ] );
127128
if ( y === e ) {
128129
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
129130
} else {
@@ -148,7 +149,7 @@ tape( 'the function evaluates the common logarithm of `x` (small positive values
148149
x = smallPositive.x;
149150
for ( i = 0; i < x.length; i++ ) {
150151
y = log10f( x[i] );
151-
e = float64ToFloat32( expected[ i ] );
152+
e = f32( expected[ i ] );
152153
if ( y === e ) {
153154
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
154155
} else {
@@ -173,7 +174,7 @@ tape( 'the function evaluates the common logarithm of `x` (smaller positive valu
173174
x = smaller.x;
174175
for ( i = 0; i < x.length; i++ ) {
175176
y = log10f( x[i] );
176-
e = float64ToFloat32( expected[ i ] );
177+
e = f32( expected[ i ] );
177178
if ( y === e ) {
178179
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
179180
} else {
@@ -198,7 +199,7 @@ tape( 'the function evaluates the common logarithm of `x` (tiny positive values)
198199
x = tinyPositive.x;
199200
for ( i = 0; i < x.length; i++ ) {
200201
y = log10f( x[i] );
201-
e = float64ToFloat32( expected[ i ] );
202+
e = f32( expected[ i ] );
202203
if ( y === e ) {
203204
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
204205
} else {
@@ -223,7 +224,7 @@ tape( 'the function evaluates the common logarithm of `x` (subnormal values)', o
223224
x = subnormal.x;
224225
for ( i = 0; i < x.length; i++ ) {
225226
y = log10f( x[i] );
226-
e = float64ToFloat32( expected[ i ] );
227+
e = f32( expected[ i ] );
227228
if ( y === e ) {
228229
t.strictEqual( y, e, 'x: '+x[i]+', y: '+y+', expected: '+e );
229230
} else {

0 commit comments

Comments
 (0)