@@ -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