Skip to content

Commit 4d1fe59

Browse files
fix: test errors
1 parent 730132e commit 4d1fe59

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ float stdlib_base_ceil2f( const float x );
167167
#include <stdio.h>
168168
169169
int main( void ) {
170-
const float x[] = { 3.14f, -3.14f, 0.5f, 0.0 / 0.0 };
170+
const float x[] = { 3.14f, -3.14f, 0.5f, 0.0f/0.0f };
171171
172172
float y;
173173
int i;

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var SMALLEST_SUBNORMAL = require( '@stdlib/constants/float32/smallest-subnormal'
2727
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2828
var isNegativeZero = require( '@stdlib/math/base/assert/is-negative-zero' );
2929
var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );
30-
var exp2f = require( '@stdlib/math/base/special/exp2f' );
30+
var exp2 = require( '@stdlib/math/base/special/exp2' );
3131
var pow = require( '@stdlib/math/base/special/pow' );
3232
var ceil2f = require( './../lib' );
3333

@@ -86,11 +86,11 @@ tape( 'the function overflows if provided a sufficiently large positive value',
8686
var x;
8787
var v;
8888

89-
x = exp2f( 1023 );
89+
x = exp2( 1023 );
9090
v = ceil2f( x + (x/2.0) );
9191
t.strictEqual( v, PINF, 'returns +infinity' );
9292

93-
x = exp2f( 1023 );
93+
x = exp2( 1023 );
9494
v = ceil2f( x + (x/3.0) );
9595
t.strictEqual( v, PINF, 'returns +infinity' );
9696

@@ -101,11 +101,11 @@ tape( 'the function supports rounding large values', function test( t ) {
101101
var x;
102102
var v;
103103

104-
x = -exp2f( 1023 );
104+
x = -exp2( 1023 );
105105
v = ceil2f( x + (x/2.0) );
106106
t.strictEqual( v, x, 'returns expected value' );
107107

108-
x = -exp2f( 1023 );
108+
x = -exp2( 1023 );
109109
v = ceil2f( x + (x/3.0) );
110110
t.strictEqual( v, x, 'returns expected value' );
111111

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var SMALLEST_SUBNORMAL = require( '@stdlib/constants/float32/smallest-subnormal'
2828
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2929
var isNegativeZero = require( '@stdlib/math/base/assert/is-negative-zero' );
3030
var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );
31-
var exp2f = require( '@stdlib/math/base/special/exp2f' );
31+
var exp2 = require( '@stdlib/math/base/special/exp2' );
3232
var pow = require( '@stdlib/math/base/special/pow' );
3333
var tryRequire = require( '@stdlib/utils/try-require' );
3434

@@ -95,11 +95,11 @@ tape( 'the function overflows if provided a sufficiently large positive value',
9595
var x;
9696
var v;
9797

98-
x = exp2f( 1023 );
98+
x = exp2( 1023 );
9999
v = ceil2f( x + (x/2.0) );
100100
t.strictEqual( v, PINF, 'returns +infinity' );
101101

102-
x = exp2f( 1023 );
102+
x = exp2( 1023 );
103103
v = ceil2f( x + (x/3.0) );
104104
t.strictEqual( v, PINF, 'returns +infinity' );
105105

@@ -110,11 +110,11 @@ tape( 'the function supports rounding large values', opts, function test( t ) {
110110
var x;
111111
var v;
112112

113-
x = -exp2f( 1023 );
113+
x = -exp2( 1023 );
114114
v = ceil2f( x + (x/2.0) );
115115
t.strictEqual( v, x, 'returns expected value' );
116116

117-
x = -exp2f( 1023 );
117+
x = -exp2( 1023 );
118118
v = ceil2f( x + (x/3.0) );
119119
t.strictEqual( v, x, 'returns expected value' );
120120

0 commit comments

Comments
 (0)