Skip to content

Commit 4a14f03

Browse files
committed
test: add tests
1 parent c4b9c9a commit 4a14f03

File tree

1 file changed

+20
-0
lines changed
  • lib/node_modules/@stdlib/array/base/assert/has-same-values/test

1 file changed

+20
-0
lines changed

lib/node_modules/@stdlib/array/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)