Skip to content

Commit 98a7f4e

Browse files
committed
fix: resolve failing tests
--- 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: passed - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 154bad3 commit 98a7f4e

File tree

2 files changed

+5
-5
lines changed
  • lib/node_modules/@stdlib/assert/has-float16array-support

2 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/assert/has-float16array-support/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ function hasFloat16ArraySupport() {
4545
}
4646
// Test basic support...
4747
try {
48-
arr = new GlobalFloat16Array( [ 1.0, 3.0, -3.0, 5.0e40 ] );
48+
arr = new GlobalFloat16Array( [ 1.0, 3.14, -3.14, 5.0e40 ] );
4949
bool = (
5050
isFloat16Array( arr ) &&
5151
arr[ 0 ] === 1.0 &&
52-
arr[ 1 ] !== 3.0 &&
53-
arr[ 2 ] !== -3.0 &&
52+
arr[ 1 ] !== 3.14 &&
53+
arr[ 2 ] !== -3.14 &&
5454
arr[ 3 ] === PINF
5555
);
5656
} catch ( err ) { // eslint-disable-line no-unused-vars

lib/node_modules/@stdlib/assert/has-float16array-support/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ tape( 'if `Float16Array` is not supported, detection result is `false`', functio
120120

121121
function Mock2() {
122122
// Does not lose precision...
123-
return [ 1.0, 3.0, -3.0, Number.POSITIVE_INFINITY ];
123+
return [ 1.0, 3.14, -3.14, Number.POSITIVE_INFINITY ];
124124
}
125125

126126
function Mock3() {
127127
// Does not overflow...
128-
return [ 1.0, 3.0, -3.0, 5.0e40 ];
128+
return [ 1.0, 3.140625, -3.140625, 5.0e40 ];
129129
}
130130

131131
function Mock4() {

0 commit comments

Comments
 (0)