We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f08be9 commit 7883e13Copy full SHA for 7883e13
lib/node_modules/@stdlib/assert/has-float16array-support/lib/main.js
@@ -45,12 +45,12 @@ function hasFloat16ArraySupport() {
45
}
46
// Test basic support...
47
try {
48
- arr = new GlobalFloat16Array( [ 1.0, 3.14, -3.14, 5.0e40 ] );
+ arr = new GlobalFloat16Array( [ 1.0, 3.0, -3.0, 5.0e40 ] );
49
bool = (
50
isFloat16Array( arr ) &&
51
arr[ 0 ] === 1.0 &&
52
- arr[ 1 ] !== 3.14 &&
53
- arr[ 2 ] !== -3.14 &&
+ arr[ 1 ] !== 3.0 &&
+ arr[ 2 ] !== -3.0 &&
54
arr[ 3 ] === PINF
55
);
56
} catch ( err ) { // eslint-disable-line no-unused-vars
0 commit comments