From 81ae848cfa8600d57998114dd990d297028cc443 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Thu, 14 Mar 2024 02:30:17 +0000 Subject: [PATCH] Update artifacts --- math/base/assert/int32-is-odd/coverage.ndjson | 1 + math/base/assert/int32-is-odd/index.html | 146 ++++++++++ math/base/assert/int32-is-odd/index.js.html | 223 ++++++++++++++++ math/base/assert/int32-is-odd/main.js.html | 229 ++++++++++++++++ math/base/assert/int32-is-odd/native.js.html | 250 ++++++++++++++++++ 5 files changed, 849 insertions(+) create mode 100644 math/base/assert/int32-is-odd/coverage.ndjson create mode 100644 math/base/assert/int32-is-odd/index.html create mode 100644 math/base/assert/int32-is-odd/index.js.html create mode 100644 math/base/assert/int32-is-odd/main.js.html create mode 100644 math/base/assert/int32-is-odd/native.js.html diff --git a/math/base/assert/int32-is-odd/coverage.ndjson b/math/base/assert/int32-is-odd/coverage.ndjson new file mode 100644 index 000000000..b06e7f1b3 --- /dev/null +++ b/math/base/assert/int32-is-odd/coverage.ndjson @@ -0,0 +1 @@ +[149,149,100,5,5,100,2,2,100,149,149,100,"d14500f3d9053d0fcd34fa19cdb8d4355bf72af7","2024-03-13 22:27:25 -0400"] diff --git a/math/base/assert/int32-is-odd/index.html b/math/base/assert/int32-is-odd/index.html new file mode 100644 index 000000000..7398ce98d --- /dev/null +++ b/math/base/assert/int32-is-odd/index.html @@ -0,0 +1,146 @@ + + + + +
++ Press n or j to go to the next uncovered block, b, p or k for the previous block. +
+ +File | ++ | Statements | ++ | Branches | ++ | Functions | ++ | Lines | ++ |
---|---|---|---|---|---|---|---|---|---|
index.js | +
+
+ |
+ 100% | +46/46 | +100% | +1/1 | +100% | +0/0 | +100% | +46/46 | +
main.js | +
+
+ |
+ 100% | +48/48 | +100% | +2/2 | +100% | +1/1 | +100% | +48/48 | +
native.js | +
+
+ |
+ 100% | +55/55 | +100% | +2/2 | +100% | +1/1 | +100% | +55/55 | +
+ 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 | 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) 2018 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 a 32-bit integer is odd. +* +* @module @stdlib/math/base/assert/int32-is-odd +* +* @example +* var isOdd = require( '@stdlib/math/base/assert/int32-is-odd' ); +* +* var bool = isOdd( 5 ); +* // returns true +* +* bool = isOdd( -2 ); +* // returns false +* +* bool = isOdd( 0 ); +* // returns false +*/ + +// MODULES // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; + |
+ 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 | 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 +2001x +2001x +2001x +1x +1x +1x +1x +1x + | /** +* @license Apache-2.0 +* +* Copyright (c) 2018 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 a 32-bit integer is odd. +* +* @param {integer32} x - value to test +* @returns {boolean} boolean indicating whether the value is odd +* +* @example +* var bool = isOdd( 5 ); +* // returns true +* +* @example +* var bool = isOdd( -2 ); +* // returns false +* +* @example +* var bool = isOdd( 0 ); +* // returns false +*/ +function isOdd( x ) { + return (x & 1) === 1; +} + + +// EXPORTS // + +module.exports = isOdd; + |
+ 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 | 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 +2001x +2001x +2001x +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 a 32-bit integer is odd. +* +* @private +* @param {number} x - value to test +* @returns {boolean} boolean indicating whether the number is odd +* +* @example +* var bool = isOdd( 5 ); +* // returns true +* +* @example +* var bool = isOdd( -2 ); +* // returns false +* +* @example +* var bool = isOdd( 0 ); +* // returns false +*/ +function isOdd( x ) { + return Boolean( addon( x ) ); +} + + +// EXPORTS // + +module.exports = isOdd; + |