Skip to content

Commit f8bf9d6

Browse files
committed
Auto-generated commit
1 parent 8963b98 commit f8bf9d6

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ A total of 3 people contributed to this release. Thank you to the following cont
101101

102102
<details>
103103

104+
- [`73a198b`](https://github.com/stdlib-js/stdlib/commit/73a198b42551ce9aaa142a17e9c77578205628d5) - **test:** add tests _(by Athan Reines)_
105+
- [`4a14f03`](https://github.com/stdlib-js/stdlib/commit/4a14f034cc432c477ce41d452ea220803b45525c) - **test:** add tests _(by Athan Reines)_
104106
- [`6bbe26f`](https://github.com/stdlib-js/stdlib/commit/6bbe26f751894cadb15279ceb6cf739475bb0612) - **test:** fix descriptions _(by Athan Reines)_
105107
- [`81b39fe`](https://github.com/stdlib-js/stdlib/commit/81b39fec06b8575149b2ab1b834a7577e6ac5e5d) - **feat:** add `hasEqualValuesIndexed` to namespace _(by Athan Reines)_
106108
- [`036794c`](https://github.com/stdlib-js/stdlib/commit/036794c19bd65d13a60c098a5423cf12e1be5d12) - **feat:** add `array/base/assert/has-equal-values-indexed` _(by Athan Reines)_

base/assert/has-equal-values/test/test.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ tape( 'if provided empty collections, the function returns `true` (mixed)', func
109109
out = hasEqualValues( x, y );
110110
t.strictEqual( out, true, 'returns expected value' );
111111

112+
x = new BooleanArray( [] );
113+
y = [];
114+
out = hasEqualValues( x, y );
115+
t.strictEqual( out, true, 'returns expected value' );
116+
117+
x = [];
118+
y = new BooleanArray( [] );
119+
out = hasEqualValues( x, y );
120+
t.strictEqual( out, true, 'returns expected value' );
121+
112122
t.end();
113123
});
114124

@@ -221,6 +231,16 @@ tape( 'the function returns `true` if both arrays have equal values (mixed)', fu
221231
out = hasEqualValues( x, y );
222232
t.strictEqual( out, true, 'returns expected value' );
223233

234+
x = new BooleanArray( [ true, false, true ] );
235+
y = [ true, false, true ];
236+
out = hasEqualValues( x, y );
237+
t.strictEqual( out, true, 'returns expected value' );
238+
239+
x = [ true, false, true ];
240+
y = new BooleanArray( [ true, false, true ] );
241+
out = hasEqualValues( x, y );
242+
t.strictEqual( out, true, 'returns expected value' );
243+
224244
t.end();
225245
});
226246

base/assert/has-same-values/test/test.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ tape( 'if provided empty collections, the function returns `true` (mixed)', func
109109
out = hasSameValues( x, y );
110110
t.strictEqual( out, true, 'returns expected value' );
111111

112+
x = new BooleanArray( [] );
113+
y = [];
114+
out = hasSameValues( x, y );
115+
t.strictEqual( out, true, 'returns expected value' );
116+
117+
x = [];
118+
y = new BooleanArray( [] );
119+
out = hasSameValues( x, y );
120+
t.strictEqual( out, true, 'returns expected value' );
121+
112122
t.end();
113123
});
114124

@@ -221,6 +231,16 @@ tape( 'the function returns `true` if both arrays have the same values (mixed)',
221231
out = hasSameValues( x, y );
222232
t.strictEqual( out, true, 'returns expected value' );
223233

234+
x = new BooleanArray( [ true, false, true ] );
235+
y = [ true, false, true ];
236+
out = hasSameValues( x, y );
237+
t.strictEqual( out, true, 'returns expected value' );
238+
239+
x = [ true, false, true ];
240+
y = new BooleanArray( [ true, false, true ] );
241+
out = hasSameValues( x, y );
242+
t.strictEqual( out, true, 'returns expected value' );
243+
224244
t.end();
225245
});
226246

0 commit comments

Comments
 (0)