From f8bf9d64d6c222725ebd2c99154a8d9f27dbb0db Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 9 Sep 2024 07:18:46 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 2 ++ base/assert/has-equal-values/test/test.js | 20 ++++++++++++++++++++ base/assert/has-same-values/test/test.js | 20 ++++++++++++++++++++ 3 files changed, 42 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ffca59c..8e6eef10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -101,6 +101,8 @@ A total of 3 people contributed to this release. Thank you to the following cont
+- [`73a198b`](https://github.com/stdlib-js/stdlib/commit/73a198b42551ce9aaa142a17e9c77578205628d5) - **test:** add tests _(by Athan Reines)_ +- [`4a14f03`](https://github.com/stdlib-js/stdlib/commit/4a14f034cc432c477ce41d452ea220803b45525c) - **test:** add tests _(by Athan Reines)_ - [`6bbe26f`](https://github.com/stdlib-js/stdlib/commit/6bbe26f751894cadb15279ceb6cf739475bb0612) - **test:** fix descriptions _(by Athan Reines)_ - [`81b39fe`](https://github.com/stdlib-js/stdlib/commit/81b39fec06b8575149b2ab1b834a7577e6ac5e5d) - **feat:** add `hasEqualValuesIndexed` to namespace _(by Athan Reines)_ - [`036794c`](https://github.com/stdlib-js/stdlib/commit/036794c19bd65d13a60c098a5423cf12e1be5d12) - **feat:** add `array/base/assert/has-equal-values-indexed` _(by Athan Reines)_ diff --git a/base/assert/has-equal-values/test/test.js b/base/assert/has-equal-values/test/test.js index 5278d263..c4a3fb23 100644 --- a/base/assert/has-equal-values/test/test.js +++ b/base/assert/has-equal-values/test/test.js @@ -109,6 +109,16 @@ tape( 'if provided empty collections, the function returns `true` (mixed)', func out = hasEqualValues( x, y ); t.strictEqual( out, true, 'returns expected value' ); + x = new BooleanArray( [] ); + y = []; + out = hasEqualValues( x, y ); + t.strictEqual( out, true, 'returns expected value' ); + + x = []; + y = new BooleanArray( [] ); + out = hasEqualValues( x, y ); + t.strictEqual( out, true, 'returns expected value' ); + t.end(); }); @@ -221,6 +231,16 @@ tape( 'the function returns `true` if both arrays have equal values (mixed)', fu out = hasEqualValues( x, y ); t.strictEqual( out, true, 'returns expected value' ); + x = new BooleanArray( [ true, false, true ] ); + y = [ true, false, true ]; + out = hasEqualValues( x, y ); + t.strictEqual( out, true, 'returns expected value' ); + + x = [ true, false, true ]; + y = new BooleanArray( [ true, false, true ] ); + out = hasEqualValues( x, y ); + t.strictEqual( out, true, 'returns expected value' ); + t.end(); }); diff --git a/base/assert/has-same-values/test/test.js b/base/assert/has-same-values/test/test.js index f5e4be8e..7b870b12 100644 --- a/base/assert/has-same-values/test/test.js +++ b/base/assert/has-same-values/test/test.js @@ -109,6 +109,16 @@ tape( 'if provided empty collections, the function returns `true` (mixed)', func out = hasSameValues( x, y ); t.strictEqual( out, true, 'returns expected value' ); + x = new BooleanArray( [] ); + y = []; + out = hasSameValues( x, y ); + t.strictEqual( out, true, 'returns expected value' ); + + x = []; + y = new BooleanArray( [] ); + out = hasSameValues( x, y ); + t.strictEqual( out, true, 'returns expected value' ); + t.end(); }); @@ -221,6 +231,16 @@ tape( 'the function returns `true` if both arrays have the same values (mixed)', out = hasSameValues( x, y ); t.strictEqual( out, true, 'returns expected value' ); + x = new BooleanArray( [ true, false, true ] ); + y = [ true, false, true ]; + out = hasSameValues( x, y ); + t.strictEqual( out, true, 'returns expected value' ); + + x = [ true, false, true ]; + y = new BooleanArray( [ true, false, true ] ); + out = hasSameValues( x, y ); + t.strictEqual( out, true, 'returns expected value' ); + t.end(); });