Skip to content

Commit 4ffa9e7

Browse files
committed
Fix failing tests by renaming files and removing headers
1 parent b85033f commit 4ffa9e7

13 files changed

+122
-248
lines changed

lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/test/fixtures/empty.js

-37
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
'use strict';
2+
3+
// MAIN //
4+
5+
/**
6+
* Evaluates a polynomial.
7+
*
8+
* @private
9+
* @param {number} x - value at which to evaluate the polynomial
10+
* @returns {number} evaluated polynomial
11+
*/
12+
function evalpoly() {
13+
return 0.0;
14+
}
15+
16+
17+
// EXPORTS //
18+
19+
module.exports = evalpoly;

lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/test/fixtures/evalpoly1.js

-47
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
'use strict';
2+
3+
// MAIN //
4+
5+
/**
6+
* Evaluates a polynomial.
7+
*
8+
* ## Notes
9+
*
10+
* - The implementation uses [Horner's rule][horners-method] for efficient computation.
11+
*
12+
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
13+
*
14+
*
15+
* @private
16+
* @param {number} x - value at which to evaluate the polynomial
17+
* @returns {number} evaluated polynomial
18+
*/
19+
function evalpoly( x ) {
20+
if ( x === 0.0 ) {
21+
return 1.0;
22+
}
23+
return 1.0 + (x * (2.5 + (x * (3.14 + (x * -1.0))))); // eslint-disable-line max-len
24+
}
25+
26+
27+
// EXPORTS //
28+
29+
module.exports = evalpoly;

lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/test/fixtures/evalpoly2.js

-47
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
'use strict';
2+
3+
// MAIN //
4+
5+
/**
6+
* Evaluates a polynomial.
7+
*
8+
* ## Notes
9+
*
10+
* - The implementation uses [Horner's rule][horners-method] for efficient computation.
11+
*
12+
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
13+
*
14+
*
15+
* @private
16+
* @param {number} x - value at which to evaluate the polynomial
17+
* @returns {number} evaluated polynomial
18+
*/
19+
function evalpoly( x ) {
20+
if ( x === 0.0 ) {
21+
return -3.14;
22+
}
23+
return -3.14 + (x * 0.0); // eslint-disable-line max-len
24+
}
25+
26+
27+
// EXPORTS //
28+
29+
module.exports = evalpoly;

lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/test/fixtures/loop1.js renamed to lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/test/fixtures/loop1.js.txt

-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
/**
2-
* @license Apache-2.0
3-
*
4-
* Copyright (c) 2018 The Stdlib Authors.
5-
*
6-
* Licensed under the Apache License, Version 2.0 (the "License");
7-
* you may not use this file except in compliance with the License.
8-
* You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing, software
13-
* distributed under the License is distributed on an "AS IS" BASIS,
14-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
* See the License for the specific language governing permissions and
16-
* limitations under the License.
17-
*/
18-
191
'use strict';
202

213
// VARIABLES //

lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/test/fixtures/loop2.js renamed to lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/test/fixtures/loop2.js.txt

-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
/**
2-
* @license Apache-2.0
3-
*
4-
* Copyright (c) 2018 The Stdlib Authors.
5-
*
6-
* Licensed under the Apache License, Version 2.0 (the "License");
7-
* you may not use this file except in compliance with the License.
8-
* You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing, software
13-
* distributed under the License is distributed on an "AS IS" BASIS,
14-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
* See the License for the specific language governing permissions and
16-
* limitations under the License.
17-
*/
18-
191
'use strict';
202

213
// VARIABLES //

lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/test/fixtures/single_coefficient.js

-37
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
'use strict';
2+
3+
// MAIN //
4+
5+
/**
6+
* Evaluates a polynomial.
7+
*
8+
* @private
9+
* @param {number} x - value at which to evaluate the polynomial
10+
* @returns {number} evaluated polynomial
11+
*/
12+
function evalpoly() {
13+
return 3.14;
14+
}
15+
16+
17+
// EXPORTS //
18+
19+
module.exports = evalpoly;

lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/test/fixtures/single_coefficient_integer.js

-37
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
'use strict';
2+
3+
// MAIN //
4+
5+
/**
6+
* Evaluates a polynomial.
7+
*
8+
* @private
9+
* @param {number} x - value at which to evaluate the polynomial
10+
* @returns {number} evaluated polynomial
11+
*/
12+
function evalpoly() {
13+
return -3.0;
14+
}
15+
16+
17+
// EXPORTS //
18+
19+
module.exports = evalpoly;

0 commit comments

Comments
 (0)