From c3f81e0615bb0f3dadfa3c98f4cfa1ca0f0101cd Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Wed, 17 Jan 2024 00:20:07 +0000 Subject: [PATCH] Update artifacts --- complex/base/assert/is-equal/coverage.ndjson | 1 + complex/base/assert/is-equal/index.html | 131 ++++++++ complex/base/assert/is-equal/index.js.html | 217 ++++++++++++++ complex/base/assert/is-equal/main.js.html | 253 ++++++++++++++++ complex/base/assert/is-equalf/coverage.ndjson | 1 + complex/base/assert/is-equalf/index.html | 131 ++++++++ complex/base/assert/is-equalf/index.js.html | 217 ++++++++++++++ complex/base/assert/is-equalf/main.js.html | 253 ++++++++++++++++ .../base/assert/is-not-equal/coverage.ndjson | 1 + complex/base/assert/is-not-equal/index.html | 2 +- .../base/assert/is-not-equal/index.js.html | 2 +- complex/base/assert/is-not-equal/main.js.html | 2 +- .../base/assert/is-not-equalf/coverage.ndjson | 1 + complex/base/assert/is-not-equalf/index.html | 2 +- .../base/assert/is-not-equalf/index.js.html | 2 +- .../base/assert/is-not-equalf/main.js.html | 2 +- .../base/assert/is-same-value/coverage.ndjson | 1 + complex/base/assert/is-same-value/index.html | 2 +- .../base/assert/is-same-value/index.js.html | 2 +- .../base/assert/is-same-value/main.js.html | 2 +- .../base/assert/is-same-value/coverage.ndjson | 1 + .../base/assert/is-same-value/index.html | 146 +++++++++ .../base/assert/is-same-value/index.js.html | 232 ++++++++++++++ .../base/assert/is-same-value/main.js.html | 283 ++++++++++++++++++ .../base/assert/is-same-value/native.js.html | 265 ++++++++++++++++ number/float64/base/exponent/coverage.ndjson | 1 + number/float64/base/exponent/index.html | 2 +- number/float64/base/exponent/index.js.html | 2 +- number/float64/base/exponent/main.js.html | 22 +- number/float64/base/exponent/native.js.html | 2 +- 30 files changed, 2158 insertions(+), 23 deletions(-) create mode 100644 complex/base/assert/is-equal/coverage.ndjson create mode 100644 complex/base/assert/is-equal/index.html create mode 100644 complex/base/assert/is-equal/index.js.html create mode 100644 complex/base/assert/is-equal/main.js.html create mode 100644 complex/base/assert/is-equalf/coverage.ndjson create mode 100644 complex/base/assert/is-equalf/index.html create mode 100644 complex/base/assert/is-equalf/index.js.html create mode 100644 complex/base/assert/is-equalf/main.js.html create mode 100644 number/float64/base/assert/is-same-value/coverage.ndjson create mode 100644 number/float64/base/assert/is-same-value/index.html create mode 100644 number/float64/base/assert/is-same-value/index.js.html create mode 100644 number/float64/base/assert/is-same-value/main.js.html create mode 100644 number/float64/base/assert/is-same-value/native.js.html diff --git a/complex/base/assert/is-equal/coverage.ndjson b/complex/base/assert/is-equal/coverage.ndjson new file mode 100644 index 0000000000..e865e9d375 --- /dev/null +++ b/complex/base/assert/is-equal/coverage.ndjson @@ -0,0 +1 @@ +[100,100,100,4,4,100,1,1,100,100,100,100,"07e2d747623f859101c8542655e76a61e8f742f2","2024-01-16 16:16:43 -0800"] diff --git a/complex/base/assert/is-equal/index.html b/complex/base/assert/is-equal/index.html new file mode 100644 index 0000000000..7ded1dbb04 --- /dev/null +++ b/complex/base/assert/is-equal/index.html @@ -0,0 +1,131 @@ + + + + + + Code coverage report for complex/base/assert/is-equal/lib + + + + + + + + + +
+
+

All files complex/base/assert/is-equal/lib

+
+ +
+ 100% + Statements + 100/100 +
+ + +
+ 100% + Branches + 4/4 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 100/100 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
index.js +
+
100%44/44100%1/1100%0/0100%44/44
main.js +
+
100%56/56100%3/3100%1/1100%56/56
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/complex/base/assert/is-equal/index.js.html b/complex/base/assert/is-equal/index.js.html new file mode 100644 index 0000000000..bcadd0f1eb --- /dev/null +++ b/complex/base/assert/is-equal/index.js.html @@ -0,0 +1,217 @@ + + + + + + Code coverage report for complex/base/assert/is-equal/lib/index.js + + + + + + + + + +
+
+

All files / complex/base/assert/is-equal/lib index.js

+
+ +
+ 100% + Statements + 44/44 +
+ + +
+ 100% + Branches + 1/1 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 44/44 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +451x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+/**
+* Test whether two double-precision complex floating-point numbers are equal.
+*
+* @module @stdlib/complex/base/assert/is-equal
+*
+* @example
+* var Complex128 = require( '@stdlib/complex/float64' );
+* var isEqual = require( '@stdlib/complex/base/assert/is-equal' );
+*
+* var z1 = new Complex128( 5.0, 3.0 );
+* var z2 = new Complex128( 5.0, 3.0 );
+*
+* var v = isEqual( z1, z2 );
+* // returns true
+*/
+ 
+// MODULES //
+ 
+var main = require( './main.js' );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = main;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/complex/base/assert/is-equal/main.js.html b/complex/base/assert/is-equal/main.js.html new file mode 100644 index 0000000000..52df2bb59f --- /dev/null +++ b/complex/base/assert/is-equal/main.js.html @@ -0,0 +1,253 @@ + + + + + + Code coverage report for complex/base/assert/is-equal/lib/main.js + + + + + + + + + +
+
+

All files / complex/base/assert/is-equal/lib main.js

+
+ +
+ 100% + Statements + 56/56 +
+ + +
+ 100% + Branches + 3/3 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 56/56 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +571x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +20x +20x +20x +20x +20x +11x +20x +20x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var reim = require( '@stdlib/complex/reim' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Tests whether two double-precision complex floating-point numbers are equal.
+*
+* @param {Complex128} z1 - first complex number
+* @param {Complex128} z2 - second complex number
+* @returns {boolean} result
+*
+* @example
+* var Complex128 = require( '@stdlib/complex/float64' );
+*
+* var z1 = new Complex128( 5.0, 3.0 );
+* var z2 = new Complex128( 5.0, 3.0 );
+*
+* var v = isEqual( z1, z2 );
+* // returns true
+*/
+function isEqual( z1, z2 ) {
+	var parts1 = reim( z1 );
+	var parts2 = reim( z2 );
+	return (
+		parts1[ 0 ] === parts2[ 0 ] &&
+		parts1[ 1 ] === parts2[ 1 ]
+	);
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = isEqual;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/complex/base/assert/is-equalf/coverage.ndjson b/complex/base/assert/is-equalf/coverage.ndjson new file mode 100644 index 0000000000..e865e9d375 --- /dev/null +++ b/complex/base/assert/is-equalf/coverage.ndjson @@ -0,0 +1 @@ +[100,100,100,4,4,100,1,1,100,100,100,100,"07e2d747623f859101c8542655e76a61e8f742f2","2024-01-16 16:16:43 -0800"] diff --git a/complex/base/assert/is-equalf/index.html b/complex/base/assert/is-equalf/index.html new file mode 100644 index 0000000000..3a4bd96d3e --- /dev/null +++ b/complex/base/assert/is-equalf/index.html @@ -0,0 +1,131 @@ + + + + + + Code coverage report for complex/base/assert/is-equalf/lib + + + + + + + + + +
+
+

All files complex/base/assert/is-equalf/lib

+
+ +
+ 100% + Statements + 100/100 +
+ + +
+ 100% + Branches + 4/4 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 100/100 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
index.js +
+
100%44/44100%1/1100%0/0100%44/44
main.js +
+
100%56/56100%3/3100%1/1100%56/56
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/complex/base/assert/is-equalf/index.js.html b/complex/base/assert/is-equalf/index.js.html new file mode 100644 index 0000000000..7b7032e701 --- /dev/null +++ b/complex/base/assert/is-equalf/index.js.html @@ -0,0 +1,217 @@ + + + + + + Code coverage report for complex/base/assert/is-equalf/lib/index.js + + + + + + + + + +
+
+

All files / complex/base/assert/is-equalf/lib index.js

+
+ +
+ 100% + Statements + 44/44 +
+ + +
+ 100% + Branches + 1/1 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 44/44 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +451x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+/**
+* Test whether two single-precision complex floating-point numbers are equal.
+*
+* @module @stdlib/complex/base/assert/is-equalf
+*
+* @example
+* var Complex64 = require( '@stdlib/complex/float32' );
+* var isEqualf = require( '@stdlib/complex/base/assert/is-equalf' );
+*
+* var z1 = new Complex64( 5.0, 3.0 );
+* var z2 = new Complex64( 5.0, 3.0 );
+*
+* var v = isEqualf( z1, z2 );
+* // returns true
+*/
+ 
+// MODULES //
+ 
+var main = require( './main.js' );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = main;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/complex/base/assert/is-equalf/main.js.html b/complex/base/assert/is-equalf/main.js.html new file mode 100644 index 0000000000..87cecfc664 --- /dev/null +++ b/complex/base/assert/is-equalf/main.js.html @@ -0,0 +1,253 @@ + + + + + + Code coverage report for complex/base/assert/is-equalf/lib/main.js + + + + + + + + + +
+
+

All files / complex/base/assert/is-equalf/lib main.js

+
+ +
+ 100% + Statements + 56/56 +
+ + +
+ 100% + Branches + 3/3 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 56/56 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +571x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +20x +20x +20x +20x +20x +11x +20x +20x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var reimf = require( '@stdlib/complex/reimf' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Tests whether two single-precision complex floating-point numbers are equal.
+*
+* @param {Complex64} z1 - first complex number
+* @param {Complex64} z2 - second complex number
+* @returns {boolean} result
+*
+* @example
+* var Complex64 = require( '@stdlib/complex/float32' );
+*
+* var z1 = new Complex64( 5.0, 3.0 );
+* var z2 = new Complex64( 5.0, 3.0 );
+*
+* var v = isEqualf( z1, z2 );
+* // returns true
+*/
+function isEqualf( z1, z2 ) {
+	var parts1 = reimf( z1 );
+	var parts2 = reimf( z2 );
+	return (
+		parts1[ 0 ] === parts2[ 0 ] &&
+		parts1[ 1 ] === parts2[ 1 ]
+	);
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = isEqualf;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/complex/base/assert/is-not-equal/coverage.ndjson b/complex/base/assert/is-not-equal/coverage.ndjson index ec8c1932fb..4dca42886c 100644 --- a/complex/base/assert/is-not-equal/coverage.ndjson +++ b/complex/base/assert/is-not-equal/coverage.ndjson @@ -1 +1,2 @@ [100,100,100,4,4,100,1,1,100,100,100,100,"dc814231dc13b326ee14a7b250dd76c919b1ad86","2024-01-16 13:48:11 -0800"] +[100,100,100,4,4,100,1,1,100,100,100,100,"07e2d747623f859101c8542655e76a61e8f742f2","2024-01-16 16:16:43 -0800"] diff --git a/complex/base/assert/is-not-equal/index.html b/complex/base/assert/is-not-equal/index.html index 42a0037442..c88cd031c5 100644 --- a/complex/base/assert/is-not-equal/index.html +++ b/complex/base/assert/is-not-equal/index.html @@ -116,7 +116,7 @@

All files complex/base/assert/is-not + + + + + + \ No newline at end of file diff --git a/number/float64/base/assert/is-same-value/index.js.html b/number/float64/base/assert/is-same-value/index.js.html new file mode 100644 index 0000000000..26379ff0e9 --- /dev/null +++ b/number/float64/base/assert/is-same-value/index.js.html @@ -0,0 +1,232 @@ + + + + + + Code coverage report for number/float64/base/assert/is-same-value/lib/index.js + + + + + + + + + +
+
+

All files / number/float64/base/assert/is-same-value/lib index.js

+
+ +
+ 100% + Statements + 49/49 +
+ + +
+ 100% + Branches + 1/1 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 49/49 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +501x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+/**
+* Test if two double-precision floating-point numbers are the same value.
+*
+* @module @stdlib/number/float64/base/assert/is-same-value
+*
+* @example
+* var isSameValue = require( '@stdlib/number/float64/base/assert/is-same-value' );
+*
+* var bool = isSameValue( 3.14, 3.14 );
+* // returns true
+*
+* bool = isSameValue( -0.0, -0.0 );
+* // returns true
+*
+* bool = isSameValue( -0.0, 0.0 );
+* // returns false
+*
+* bool = isSameValue( NaN, NaN );
+* // returns true
+*/
+ 
+// MODULES //
+ 
+var main = require( './main.js' );
+ 
+ 
+// EXPORTS //
+ 
+module.exports = main;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/number/float64/base/assert/is-same-value/main.js.html b/number/float64/base/assert/is-same-value/main.js.html new file mode 100644 index 0000000000..11814412d9 --- /dev/null +++ b/number/float64/base/assert/is-same-value/main.js.html @@ -0,0 +1,283 @@ + + + + + + Code coverage report for number/float64/base/assert/is-same-value/lib/main.js + + + + + + + + + +
+
+

All files / number/float64/base/assert/is-same-value/lib main.js

+
+ +
+ 100% + Statements + 66/66 +
+ + +
+ 100% + Branches + 7/7 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 66/66 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +671x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +11x +11x +7x +4x +4x +3x +3x +11x +11x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MAIN //
+ 
+/**
+* Tests if two double-precision floating-point numbers are the same value.
+*
+* ## Notes
+*
+* -   The function implements the [SameValue Algorithm][ecma-262-same-value-algorithm], as specified in ECMAScript 5.
+* -   In contrast to the strict equality operator `===`, `-0` and `+0` are distinguishable and `NaNs` are the same.
+*
+* [ecma-262-same-value-algorithm]: http://ecma-international.org/ecma-262/5.1/#sec-9.12
+*
+* @param {number} a - first input value
+* @param {number} b - second input value
+* @returns {boolean} boolean indicating whether two double-precision floating-point numbers are the same value
+*
+* @example
+* var bool = isSameValue( 3.14, 3.14 );
+* // returns true
+*
+* @example
+* var bool = isSameValue( -0.0, -0.0 );
+* // returns true
+*
+* @example
+* var bool = isSameValue( -0.0, 0.0 );
+* // returns false
+*
+* @example
+* var bool = isSameValue( NaN, NaN );
+* // returns true
+*/
+function isSameValue( a, b ) {
+	if ( a === b ) {
+		if ( a === 0.0 ) {
+			return 1.0 / a === 1.0 / b; // handles +-0
+		}
+		return true;
+	}
+	return ( a !== a && b !== b ); // handles NaNs
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = isSameValue;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/number/float64/base/assert/is-same-value/native.js.html b/number/float64/base/assert/is-same-value/native.js.html new file mode 100644 index 0000000000..097dc75625 --- /dev/null +++ b/number/float64/base/assert/is-same-value/native.js.html @@ -0,0 +1,265 @@ + + + + + + Code coverage report for number/float64/base/assert/is-same-value/lib/native.js + + + + + + + + + +
+
+

All files / number/float64/base/assert/is-same-value/lib native.js

+
+ +
+ 100% + Statements + 60/60 +
+ + +
+ 100% + Branches + 2/2 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 60/60 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +611x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +1x +11x +11x +11x +1x +1x +1x +1x +1x + 
/**
+* @license Apache-2.0
+*
+* Copyright (c) 2024 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+ 
+'use strict';
+ 
+// MODULES //
+ 
+var Boolean = require( '@stdlib/boolean/ctor' );
+var addon = require( './../src/addon.node' );
+ 
+ 
+// MAIN //
+ 
+/**
+* Tests if two double-precision floating-point numbers are the same value.
+*
+* @private
+* @param {number} a - first input value
+* @param {number} b - second input value
+* @returns {boolean} boolean indicating whether two double-precision floating-point numbers are the same value
+*
+* @example
+* var bool = isSameValue( 3.14, 3.14 );
+* // returns true
+*
+* @example
+* var bool = isSameValue( -0.0, -0.0 );
+* // returns true
+*
+* @example
+* var bool = isSameValue( -0.0, 0.0 );
+* // returns false
+*
+* @example
+* var bool = isSameValue( NaN, NaN );
+* // returns true
+*/
+function isSameValue( a, b ) {
+	return Boolean( addon( a, b ) );
+}
+ 
+ 
+// EXPORTS //
+ 
+module.exports = isSameValue;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/number/float64/base/exponent/coverage.ndjson b/number/float64/base/exponent/coverage.ndjson index 11ae001557..e6a475d071 100644 --- a/number/float64/base/exponent/coverage.ndjson +++ b/number/float64/base/exponent/coverage.ndjson @@ -1 +1,2 @@ [173,173,100,5,5,100,2,2,100,173,173,100,"d575e8b063a37d90c3178fcff7b425314ae73c98","2023-12-07 21:45:41 -0500"] +[173,173,100,5,5,100,2,2,100,173,173,100,"07e2d747623f859101c8542655e76a61e8f742f2","2024-01-16 16:16:43 -0800"] diff --git a/number/float64/base/exponent/index.html b/number/float64/base/exponent/index.html index bf591c4d31..74e5f8528d 100644 --- a/number/float64/base/exponent/index.html +++ b/number/float64/base/exponent/index.html @@ -131,7 +131,7 @@

All files number/float64/base/expone