Skip to content

Commit e652847

Browse files
fix: test errors
1 parent 64ab273 commit e652847

File tree

2 files changed

+0
-86
lines changed

2 files changed

+0
-86
lines changed

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

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -97,49 +97,6 @@ tape( 'the function overflows if provided a sufficiently large positive value',
9797
t.end();
9898
});
9999

100-
tape( 'the function supports rounding large values', opts, function test( t ) {
101-
var x;
102-
var v;
103-
104-
x = -exp2( 1023 );
105-
v = ceil2f( x + (x/2.0) );
106-
t.strictEqual( v, x, 'returns -infinity' );
107-
108-
x = -exp2( 1023 );
109-
v = ceil2f( x + (x/3.0) );
110-
t.strictEqual( v, x, 'returns -infinity' );
111-
112-
t.end();
113-
});
114-
115-
tape( 'the function supports rounding subnormal values', opts, function test( t ) {
116-
var expected;
117-
var x;
118-
var v;
119-
120-
expected = pow( 2.0, -1044 );
121-
122-
x = pow( 2.0, -1045 );
123-
v = ceil2f( x + (x/2.0) );
124-
t.strictEqual( v, expected, 'returns +0' );
125-
126-
x = pow( 2.0, -1045 );
127-
v = ceil2f( x + (x/3.0) );
128-
t.strictEqual( v, expected, 'returns +0' );
129-
130-
expected = -pow( 2.0, -1045 );
131-
132-
x = -pow( 2.0, -1045 );
133-
v = ceil2f( x + (x/2.0) );
134-
t.strictEqual( v, expected, 'returns +0' );
135-
136-
x = -pow( 2.0, -1045 );
137-
v = ceil2f( x + (x/3.0) );
138-
t.strictEqual( v, expected, 'returns +0' );
139-
140-
t.end();
141-
});
142-
143100
tape( 'the function rounds a numeric value to the nearest power of two toward positive infinity', function test( t ) {
144101
t.strictEqual( ceil2f( -4.2 ), -4.0, 'returns expected value' );
145102
t.strictEqual( ceil2f( -4.5 ), -4.0, 'returns expected value' );

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

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -106,49 +106,6 @@ tape( 'the function overflows if provided a sufficiently large positive value',
106106
t.end();
107107
});
108108

109-
tape( 'the function supports rounding large values', opts, function test( t ) {
110-
var x;
111-
var v;
112-
113-
x = -exp2( 1023 );
114-
v = ceil2f( x + (x/2.0) );
115-
t.strictEqual( v, x, 'returns -infinity' );
116-
117-
x = -exp2( 1023 );
118-
v = ceil2f( x + (x/3.0) );
119-
t.strictEqual( v, x, 'returns -infinity' );
120-
121-
t.end();
122-
});
123-
124-
tape( 'the function supports rounding subnormal values', opts, function test( t ) {
125-
var expected;
126-
var x;
127-
var v;
128-
129-
expected = pow( 2.0, -1044 );
130-
131-
x = pow( 2.0, -1045 );
132-
v = ceil2f( x + (x/2.0) );
133-
t.strictEqual( v, expected, 'returns +0' );
134-
135-
x = pow( 2.0, -1045 );
136-
v = ceil2f( x + (x/3.0) );
137-
t.strictEqual( v, expected, 'returns +0' );
138-
139-
expected = -pow( 2.0, -1045 );
140-
141-
x = -pow( 2.0, -1045 );
142-
v = ceil2f( x + (x/2.0) );
143-
t.strictEqual( v, expected, 'returns +0' );
144-
145-
x = -pow( 2.0, -1045 );
146-
v = ceil2f( x + (x/3.0) );
147-
t.strictEqual( v, expected, 'returns +0' );
148-
149-
t.end();
150-
});
151-
152109
tape( 'the function rounds a numeric value to the nearest power of two toward positive infinity', opts, function test( t ) {
153110
t.strictEqual( ceil2f( -4.2 ), -4.0, 'returns expected value' );
154111
t.strictEqual( ceil2f( -4.5 ), -4.0, 'returns expected value' );

0 commit comments

Comments
 (0)