From 21711bf9fda78c0797d6e4fab59e7323a7e4ce3b Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 26 Sep 2024 02:39:19 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 5 +++-- CONTRIBUTORS | 2 ++ test/test.js | 23 +++++++++++------------ 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6d4b74..631c4bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-09-21) +## Unreleased (2024-09-26)
@@ -12,6 +12,7 @@
+- [`f477e26`](https://github.com/stdlib-js/stdlib/commit/f477e26a03e5e365f2e7c4035959a2fb789698a3) - **chore:** move functions to parent scope _(by Philipp Burckhardt)_ - [`6e9f42e`](https://github.com/stdlib-js/stdlib/commit/6e9f42e4c912485d9896eaa16c88b70fd3688e97) - **docs:** harmonize list formatting in repl.txt and ensure starting newline _(by Philipp Burckhardt)_ - [`cadb613`](https://github.com/stdlib-js/stdlib/commit/cadb6131d6ce50338d11757e88e8a910a0367983) - **chore:** update argument documentation styling _(by Philipp Burckhardt)_ @@ -83,7 +84,7 @@ No changes reported for this release. A total of 3 people contributed to this release. Thank you to the following contributors: - Philipp Burckhardt -- Pranav +- Pranav Goswami - Rutam
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 147a89e..338044b 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -21,6 +21,7 @@ Christopher Dambamuromo Dan Rose Daniel Killenberger Daniel Yu <40680511+Daniel777y@users.noreply.github.com> +DebashisMaharana <145602692+DevMhrn@users.noreply.github.com> Dominik Moritz Dorrin Sotoudeh EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com> @@ -99,6 +100,7 @@ Xiaochuan Ye Yernar Yergaziyev naveen nishant-s7 <97207366+nishant-s7@users.noreply.github.com> +olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com> orimiles5 <97595296+orimiles5@users.noreply.github.com> rainn <88160429+AmCodesLame@users.noreply.github.com> rei2hu diff --git a/test/test.js b/test/test.js index 7b15415..491b2a7 100644 --- a/test/test.js +++ b/test/test.js @@ -25,6 +25,17 @@ var noop = require( '@stdlib/utils-noop' ); var someOwnBy = require( './../lib' ); +// FUNCTIONS // + +function isNegative( value ) { + return ( value < 0 ); +} + +function isPositive( value ) { + return ( value > 0 ); +} + + // TESTS // tape( 'main export is a function', function test( t ) { @@ -155,10 +166,6 @@ tape( 'the function returns `true` if an object contains at least `n` own proper 'd': -1 }; - function isNegative( value ) { - return ( value < 0 ); - } - bool = someOwnBy( obj, 2, isNegative ); t.strictEqual( bool, true, 'returns true' ); @@ -175,10 +182,6 @@ tape( 'the function returns `false` if an object does not contain at least `n` o 'c': -3 }; - function isPositive( value ) { - return ( value > 0 ); - } - bool = someOwnBy( obj, 1, isPositive ); t.strictEqual( bool, false, 'returns false' ); @@ -195,10 +198,6 @@ tape( 'the function returns `false` if an object does not contain at least `n` o 'c': -3.0 }; - function isPositive( value ) { - return ( value > 0 ); - } - bool = someOwnBy( obj, 4, isPositive ); t.strictEqual( bool, false, 'returns false' );