@@ -25,6 +25,7 @@ var AccessorArray = require( '@stdlib/array/base/accessor' );
25
25
var Float64Array = require ( '@stdlib/array/float64' ) ;
26
26
var Complex64Array = require ( '@stdlib/array/complex64' ) ;
27
27
var Complex128Array = require ( '@stdlib/array/complex128' ) ;
28
+ var BooleanArray = require ( '@stdlib/array/bool' ) ;
28
29
var none = require ( './../lib' ) ;
29
30
30
31
@@ -74,6 +75,17 @@ tape( 'if provided an empty collection, the function returns `true` (complex typ
74
75
t . end ( ) ;
75
76
} ) ;
76
77
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
+
77
89
tape ( 'if provided an empty collection, the function returns `true` (accessor)' , function test ( t ) {
78
90
var out ;
79
91
var arr ;
@@ -107,7 +119,7 @@ tape( 'the function returns `true` if all elements are falsy (real typed array)'
107
119
t . end ( ) ;
108
120
} ) ;
109
121
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 ) {
111
123
var out ;
112
124
var arr ;
113
125
@@ -123,6 +135,17 @@ tape( 'the function returns `true` if all elements are falsy (real typed array)'
123
135
t . end ( ) ;
124
136
} ) ;
125
137
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
+
126
149
tape ( 'the function returns `true` if all elements are falsy (accessor)' , function test ( t ) {
127
150
var out ;
128
151
var arr ;
@@ -188,6 +211,17 @@ tape( 'the function returns `false` if one or more elements are truthy (complex
188
211
t . end ( ) ;
189
212
} ) ;
190
213
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
+
191
225
tape ( 'the function returns `false` if one or more elements are truthy (accessor)' , function test ( t ) {
192
226
var out ;
193
227
var arr ;
0 commit comments