@@ -39,7 +39,7 @@ tape( 'main export is a function', function test( t ) {
39
39
40
40
tape ( 'the function is a constructor' , function test ( t ) {
41
41
var arr = new BooleanArray ( 0 ) ;
42
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
42
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
43
43
t . end ( ) ;
44
44
} ) ;
45
45
@@ -50,14 +50,14 @@ tape( 'the constructor does not require the `new` keyword', function test( t ) {
50
50
ctor = BooleanArray ;
51
51
52
52
arr = ctor ( 0 ) ;
53
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
53
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
54
54
55
55
t . end ( ) ;
56
56
} ) ;
57
57
58
58
tape ( 'the constructor returns a boolean array (no argument)' , function test ( t ) {
59
59
var arr = new BooleanArray ( ) ;
60
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
60
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
61
61
t . end ( ) ;
62
62
} ) ;
63
63
@@ -68,14 +68,14 @@ tape( 'the constructor returns a boolean array (no argument, no new)', function
68
68
ctor = BooleanArray ;
69
69
70
70
arr = ctor ( ) ;
71
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
71
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
72
72
73
73
t . end ( ) ;
74
74
} ) ;
75
75
76
76
tape ( 'the constructor returns a boolean array (length)' , function test ( t ) {
77
77
var arr = new BooleanArray ( 10 ) ;
78
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
78
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
79
79
t . end ( ) ;
80
80
} ) ;
81
81
@@ -86,14 +86,14 @@ tape( 'the constructor returns a boolean array (length, no new)', function test(
86
86
ctor = BooleanArray ;
87
87
88
88
arr = ctor ( 10 ) ;
89
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
89
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
90
90
91
91
t . end ( ) ;
92
92
} ) ;
93
93
94
94
tape ( 'the constructor returns a boolean array (array)' , function test ( t ) {
95
95
var arr = new BooleanArray ( [ ] ) ;
96
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
96
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
97
97
t . end ( ) ;
98
98
} ) ;
99
99
@@ -104,14 +104,14 @@ tape( 'the constructor returns a boolean array (array, no new)', function test(
104
104
ctor = BooleanArray ;
105
105
106
106
arr = ctor ( [ ] ) ;
107
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
107
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
108
108
109
109
t . end ( ) ;
110
110
} ) ;
111
111
112
112
tape ( 'the constructor returns a boolean array (typed array)' , function test ( t ) {
113
113
var arr = new BooleanArray ( new Uint8Array ( 0 ) ) ;
114
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
114
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
115
115
t . end ( ) ;
116
116
} ) ;
117
117
@@ -122,7 +122,7 @@ tape( 'the constructor returns a boolean array (typed array, no new)', function
122
122
ctor = BooleanArray ;
123
123
124
124
arr = ctor ( new Uint8Array ( 0 ) ) ;
125
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
125
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
126
126
127
127
t . end ( ) ;
128
128
} ) ;
@@ -137,7 +137,7 @@ tape( 'the constructor returns a boolean array (iterable)', function test( t ) {
137
137
} ) ;
138
138
139
139
arr = new BooleanArray ( createIterable ( ) ) ;
140
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
140
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
141
141
142
142
t . end ( ) ;
143
143
@@ -174,7 +174,7 @@ tape( 'the constructor returns a boolean array (iterable, no new)', function tes
174
174
} ) ;
175
175
176
176
arr = ctor ( createIterable ( ) ) ;
177
- t . strictEqual ( arr instanceof ctor , true , 'returns an instance ' ) ;
177
+ t . strictEqual ( arr instanceof ctor , true , 'returns expected value ' ) ;
178
178
179
179
t . end ( ) ;
180
180
@@ -203,7 +203,7 @@ tape( 'the constructor returns a boolean array (iterable, no new)', function tes
203
203
204
204
tape ( 'the constructor returns a boolean array (ArrayBuffer)' , function test ( t ) {
205
205
var arr = new BooleanArray ( new ArrayBuffer ( 0 ) ) ;
206
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
206
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
207
207
t . end ( ) ;
208
208
} ) ;
209
209
@@ -214,14 +214,14 @@ tape( 'the constructor returns a boolean array (ArrayBuffer, no new)', function
214
214
ctor = BooleanArray ;
215
215
216
216
arr = ctor ( new ArrayBuffer ( 0 ) ) ;
217
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
217
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
218
218
219
219
t . end ( ) ;
220
220
} ) ;
221
221
222
222
tape ( 'the constructor returns a boolean array (ArrayBuffer, byte offset)' , function test ( t ) {
223
223
var arr = new BooleanArray ( new ArrayBuffer ( 8 ) , 8 ) ;
224
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
224
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
225
225
t . end ( ) ;
226
226
} ) ;
227
227
@@ -232,14 +232,14 @@ tape( 'the constructor returns a boolean array (ArrayBuffer, byte offset, no new
232
232
ctor = BooleanArray ;
233
233
234
234
arr = ctor ( new ArrayBuffer ( 8 ) , 8 ) ;
235
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
235
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
236
236
237
237
t . end ( ) ;
238
238
} ) ;
239
239
240
240
tape ( 'the constructor returns a boolean array (ArrayBuffer, byte offset, length)' , function test ( t ) {
241
241
var arr = new BooleanArray ( new ArrayBuffer ( 8 ) , 8 , 0 ) ;
242
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
242
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
243
243
t . end ( ) ;
244
244
} ) ;
245
245
@@ -250,7 +250,7 @@ tape( 'the constructor returns a boolean array (ArrayBuffer, byte offset, length
250
250
ctor = BooleanArray ;
251
251
252
252
arr = ctor ( new ArrayBuffer ( 8 ) , 8 , 0 ) ;
253
- t . strictEqual ( arr instanceof BooleanArray , true , 'returns an instance ' ) ;
253
+ t . strictEqual ( arr instanceof BooleanArray , true , 'returns expected value ' ) ;
254
254
255
255
t . end ( ) ;
256
256
} ) ;
0 commit comments