@@ -25,6 +25,7 @@ var AccessorArray = require( '@stdlib/array/base/accessor' );
2525var Float64Array = require ( '@stdlib/array/float64' ) ;
2626var Complex64Array = require ( '@stdlib/array/complex64' ) ;
2727var Complex128Array = require ( '@stdlib/array/complex128' ) ;
28+ var BooleanArray = require ( '@stdlib/array/bool' ) ;
2829var none = require ( './../lib' ) ;
2930
3031
@@ -74,6 +75,17 @@ tape( 'if provided an empty collection, the function returns `true` (complex typ
7475t . end ( ) ;
7576} ) ;
7677
78+ tape ( 'if provided an empty collection, the function returns `true` (boolean array)' , function test ( t ) {
79+ var out ;
80+ var arr ;
81+
82+ arr = new BooleanArray ( [ ] ) ;
83+ out = none ( arr ) ;
84+
85+ t . strictEqual ( out , true , 'returns expected value' ) ;
86+ t . end ( ) ;
87+ } ) ;
88+
7789tape ( 'if provided an empty collection, the function returns `true` (accessor)' , function test ( t ) {
7890var out ;
7991var arr ;
@@ -107,7 +119,7 @@ tape( 'the function returns `true` if all elements are falsy (real typed array)'
107119t . end ( ) ;
108120} ) ;
109121
110- tape ( 'the function returns `true` if all elements are falsy (real typed array)' , function test ( t ) {
122+ tape ( 'the function returns `true` if all elements are falsy (complex typed array)' , function test ( t ) {
111123var out ;
112124var arr ;
113125
@@ -123,6 +135,17 @@ tape( 'the function returns `true` if all elements are falsy (real typed array)'
123135t . end ( ) ;
124136} ) ;
125137
138+ tape ( 'the function returns `true` if all elements are falsy (boolean array)' , function test ( t ) {
139+ var out ;
140+ var arr ;
141+
142+ arr = new BooleanArray ( [ false , false , false , false ] ) ;
143+ out = none ( arr ) ;
144+
145+ t . strictEqual ( out , true , 'returns expected value' ) ;
146+ t . end ( ) ;
147+ } ) ;
148+
126149tape ( 'the function returns `true` if all elements are falsy (accessor)' , function test ( t ) {
127150var out ;
128151var arr ;
@@ -188,6 +211,17 @@ tape( 'the function returns `false` if one or more elements are truthy (complex
188211t . end ( ) ;
189212} ) ;
190213
214+ tape ( 'the function returns `false` if one or more elements are truthy (boolean array)' , function test ( t ) {
215+ var out ;
216+ var arr ;
217+
218+ arr = new BooleanArray ( [ false , true , false , false ] ) ;
219+ out = none ( arr ) ;
220+
221+ t . strictEqual ( out , false , 'returns expected value' ) ;
222+ t . end ( ) ;
223+ } ) ;
224+
191225tape ( 'the function returns `false` if one or more elements are truthy (accessor)' , function test ( t ) {
192226var out ;
193227var arr ;
0 commit comments