@@ -24,16 +24,16 @@ var tape = require( 'tape' );
2424var isEqualDataType = require ( '@stdlib/ndarray-base-assert-is-equal-data-type' ) ;
2525var Float64Array = require ( '@stdlib/array-float64' ) ;
2626var Float32Array = require ( '@stdlib/array-float32' ) ;
27- var Int32array = require ( '@stdlib/array-int32' ) ;
28- var Uint32array = require ( '@stdlib/array-uint32' ) ;
29- var Int16array = require ( '@stdlib/array-int16' ) ;
30- var Uint16array = require ( '@stdlib/array-uint16' ) ;
31- var Int8array = require ( '@stdlib/array-int8' ) ;
32- var Uint8array = require ( '@stdlib/array-uint8' ) ;
33- var Uint8Clampedarray = require ( '@stdlib/array-uint8c' ) ;
34- var Complex64array = require ( '@stdlib/array-complex64' ) ;
35- var Complex128array = require ( '@stdlib/array-complex128' ) ;
36- var Booleanarray = require ( '@stdlib/array-bool' ) ;
27+ var Int32Array = require ( '@stdlib/array-int32' ) ;
28+ var Uint32Array = require ( '@stdlib/array-uint32' ) ;
29+ var Int16Array = require ( '@stdlib/array-int16' ) ;
30+ var Uint16Array = require ( '@stdlib/array-uint16' ) ;
31+ var Int8Array = require ( '@stdlib/array-int8' ) ;
32+ var Uint8Array = require ( '@stdlib/array-uint8' ) ;
33+ var Uint8ClampedArray = require ( '@stdlib/array-uint8c' ) ;
34+ var Complex64Array = require ( '@stdlib/array-complex64' ) ;
35+ var Complex128Array = require ( '@stdlib/array-complex128' ) ;
36+ var BooleanArray = require ( '@stdlib/array-bool' ) ;
3737var instanceOf = require ( '@stdlib/assert-instance-of' ) ;
3838var base = require ( '@stdlib/ndarray-base-ctor' ) ;
3939var ndarray = require ( '@stdlib/ndarray-ctor' ) ;
@@ -125,7 +125,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=int3
125125 var actual ;
126126 var x ;
127127
128- x = array ( new Int32array ( [ 1 , 2 , 3 , 4 ] ) , {
128+ x = array ( new Int32Array ( [ 1 , 2 , 3 , 4 ] ) , {
129129 'shape' : [ 2 , 2 ] ,
130130 'dtype' : 'int32' ,
131131 'order' : 'row-major'
@@ -136,7 +136,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=int3
136136
137137 t . strictEqual ( isEqualDataType ( getDType ( actual ) , getDType ( x ) ) , true , 'returns expected value' ) ;
138138 t . deepEqual ( getShape ( actual ) , [ 2 , 2 ] , 'returns expected value' ) ;
139- t . strictEqual ( instanceOf ( getData ( actual ) , Int32array ) , true , 'returns expected value' ) ;
139+ t . strictEqual ( instanceOf ( getData ( actual ) , Int32Array ) , true , 'returns expected value' ) ;
140140 t . notEqual ( getData ( actual ) , getData ( x ) , 'returns expected value' ) ;
141141 t . deepEqual ( ndarray2array ( actual ) , expected , 'returns expected value' ) ;
142142
@@ -148,7 +148,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=uint
148148 var actual ;
149149 var x ;
150150
151- x = array ( new Uint32array ( [ 1 , 2 , 3 , 4 ] ) , {
151+ x = array ( new Uint32Array ( [ 1 , 2 , 3 , 4 ] ) , {
152152 'shape' : [ 2 , 2 ] ,
153153 'dtype' : 'uint32' ,
154154 'order' : 'row-major'
@@ -159,7 +159,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=uint
159159
160160 t . strictEqual ( isEqualDataType ( getDType ( actual ) , getDType ( x ) ) , true , 'returns expected value' ) ;
161161 t . deepEqual ( getShape ( actual ) , [ 2 , 2 ] , 'returns expected value' ) ;
162- t . strictEqual ( instanceOf ( getData ( actual ) , Uint32array ) , true , 'returns expected value' ) ;
162+ t . strictEqual ( instanceOf ( getData ( actual ) , Uint32Array ) , true , 'returns expected value' ) ;
163163 t . notEqual ( getData ( actual ) , getData ( x ) , 'returns expected value' ) ;
164164 t . deepEqual ( ndarray2array ( actual ) , expected , 'returns expected value' ) ;
165165
@@ -171,7 +171,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=int1
171171 var actual ;
172172 var x ;
173173
174- x = array ( new Int16array ( [ 1 , 2 , 3 , 4 ] ) , {
174+ x = array ( new Int16Array ( [ 1 , 2 , 3 , 4 ] ) , {
175175 'shape' : [ 2 , 2 ] ,
176176 'dtype' : 'int16' ,
177177 'order' : 'row-major'
@@ -182,7 +182,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=int1
182182
183183 t . strictEqual ( isEqualDataType ( getDType ( actual ) , getDType ( x ) ) , true , 'returns expected value' ) ;
184184 t . deepEqual ( getShape ( actual ) , [ 2 , 2 ] , 'returns expected value' ) ;
185- t . strictEqual ( instanceOf ( getData ( actual ) , Int16array ) , true , 'returns expected value' ) ;
185+ t . strictEqual ( instanceOf ( getData ( actual ) , Int16Array ) , true , 'returns expected value' ) ;
186186 t . notEqual ( getData ( actual ) , getData ( x ) , 'returns expected value' ) ;
187187 t . deepEqual ( ndarray2array ( actual ) , expected , 'returns expected value' ) ;
188188
@@ -194,7 +194,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=uint
194194 var actual ;
195195 var x ;
196196
197- x = array ( new Uint16array ( [ 1 , 2 , 3 , 4 ] ) , {
197+ x = array ( new Uint16Array ( [ 1 , 2 , 3 , 4 ] ) , {
198198 'shape' : [ 2 , 2 ] ,
199199 'dtype' : 'uint16' ,
200200 'order' : 'row-major'
@@ -205,7 +205,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=uint
205205
206206 t . strictEqual ( isEqualDataType ( getDType ( actual ) , getDType ( x ) ) , true , 'returns expected value' ) ;
207207 t . deepEqual ( getShape ( actual ) , [ 2 , 2 ] , 'returns expected value' ) ;
208- t . strictEqual ( instanceOf ( getData ( actual ) , Uint16array ) , true , 'returns expected value' ) ;
208+ t . strictEqual ( instanceOf ( getData ( actual ) , Uint16Array ) , true , 'returns expected value' ) ;
209209 t . notEqual ( getData ( actual ) , getData ( x ) , 'returns expected value' ) ;
210210 t . deepEqual ( ndarray2array ( actual ) , expected , 'returns expected value' ) ;
211211
@@ -217,7 +217,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=int8
217217 var actual ;
218218 var x ;
219219
220- x = array ( new Int8array ( [ 1 , 2 , 3 , 4 ] ) , {
220+ x = array ( new Int8Array ( [ 1 , 2 , 3 , 4 ] ) , {
221221 'shape' : [ 2 , 2 ] ,
222222 'dtype' : 'int8' ,
223223 'order' : 'row-major'
@@ -228,7 +228,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=int8
228228
229229 t . strictEqual ( isEqualDataType ( getDType ( actual ) , getDType ( x ) ) , true , 'returns expected value' ) ;
230230 t . deepEqual ( getShape ( actual ) , [ 2 , 2 ] , 'returns expected value' ) ;
231- t . strictEqual ( instanceOf ( getData ( actual ) , Int8array ) , true , 'returns expected value' ) ;
231+ t . strictEqual ( instanceOf ( getData ( actual ) , Int8Array ) , true , 'returns expected value' ) ;
232232 t . notEqual ( getData ( actual ) , getData ( x ) , 'returns expected value' ) ;
233233 t . deepEqual ( ndarray2array ( actual ) , expected , 'returns expected value' ) ;
234234
@@ -240,7 +240,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=uint
240240 var actual ;
241241 var x ;
242242
243- x = array ( new Uint8array ( [ 1 , 2 , 3 , 4 ] ) , {
243+ x = array ( new Uint8Array ( [ 1 , 2 , 3 , 4 ] ) , {
244244 'shape' : [ 2 , 2 ] ,
245245 'dtype' : 'uint8' ,
246246 'order' : 'row-major'
@@ -251,7 +251,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=uint
251251
252252 t . strictEqual ( isEqualDataType ( getDType ( actual ) , getDType ( x ) ) , true , 'returns expected value' ) ;
253253 t . deepEqual ( getShape ( actual ) , [ 2 , 2 ] , 'returns expected value' ) ;
254- t . strictEqual ( instanceOf ( getData ( actual ) , Uint8array ) , true , 'returns expected value' ) ;
254+ t . strictEqual ( instanceOf ( getData ( actual ) , Uint8Array ) , true , 'returns expected value' ) ;
255255 t . notEqual ( getData ( actual ) , getData ( x ) , 'returns expected value' ) ;
256256 t . deepEqual ( ndarray2array ( actual ) , expected , 'returns expected value' ) ;
257257
@@ -263,7 +263,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=uint
263263 var actual ;
264264 var x ;
265265
266- x = array ( new Uint8Clampedarray ( [ 1 , 2 , 3 , 4 ] ) , {
266+ x = array ( new Uint8ClampedArray ( [ 1 , 2 , 3 , 4 ] ) , {
267267 'shape' : [ 2 , 2 ] ,
268268 'dtype' : 'uint8c' ,
269269 'order' : 'row-major'
@@ -274,7 +274,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=uint
274274
275275 t . strictEqual ( isEqualDataType ( getDType ( actual ) , getDType ( x ) ) , true , 'returns expected value' ) ;
276276 t . deepEqual ( getShape ( actual ) , [ 2 , 2 ] , 'returns expected value' ) ;
277- t . strictEqual ( instanceOf ( getData ( actual ) , Uint8Clampedarray ) , true , 'returns expected value' ) ;
277+ t . strictEqual ( instanceOf ( getData ( actual ) , Uint8ClampedArray ) , true , 'returns expected value' ) ;
278278 t . notEqual ( getData ( actual ) , getData ( x ) , 'returns expected value' ) ;
279279 t . deepEqual ( ndarray2array ( actual ) , expected , 'returns expected value' ) ;
280280
@@ -286,7 +286,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=comp
286286 var actual ;
287287 var x ;
288288
289- x = array ( new Complex128array ( [ 1.0 , 2.0 , 3.0 , 4.0 ] ) , {
289+ x = array ( new Complex128Array ( [ 1.0 , 2.0 , 3.0 , 4.0 ] ) , {
290290 'shape' : [ 2 , 1 ] ,
291291 'dtype' : 'complex128' ,
292292 'order' : 'row-major'
@@ -310,7 +310,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=comp
310310
311311 t . strictEqual ( isEqualDataType ( getDType ( actual ) , getDType ( x ) ) , true , 'returns expected value' ) ;
312312 t . deepEqual ( getShape ( actual ) , [ 2 , 1 ] , 'returns expected value' ) ;
313- t . strictEqual ( instanceOf ( getData ( actual ) , Complex128array ) , true , 'returns expected value' ) ;
313+ t . strictEqual ( instanceOf ( getData ( actual ) , Complex128Array ) , true , 'returns expected value' ) ;
314314 t . notEqual ( getData ( actual ) , getData ( x ) , 'returns expected value' ) ;
315315 t . deepEqual ( ndarray2array ( actual ) , expected , 'returns expected value' ) ;
316316
@@ -322,7 +322,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=comp
322322 var actual ;
323323 var x ;
324324
325- x = array ( new Complex64array ( [ 1.0 , 2.0 , 3.0 , 4.0 ] ) , {
325+ x = array ( new Complex64Array ( [ 1.0 , 2.0 , 3.0 , 4.0 ] ) , {
326326 'shape' : [ 2 , 1 ] ,
327327 'dtype' : 'complex64' ,
328328 'order' : 'row-major'
@@ -346,7 +346,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=comp
346346
347347 t . strictEqual ( isEqualDataType ( getDType ( actual ) , getDType ( x ) ) , true , 'returns expected value' ) ;
348348 t . deepEqual ( getShape ( actual ) , [ 2 , 1 ] , 'returns expected value' ) ;
349- t . strictEqual ( instanceOf ( getData ( actual ) , Complex64array ) , true , 'returns expected value' ) ;
349+ t . strictEqual ( instanceOf ( getData ( actual ) , Complex64Array ) , true , 'returns expected value' ) ;
350350 t . notEqual ( getData ( actual ) , getData ( x ) , 'returns expected value' ) ;
351351 t . deepEqual ( ndarray2array ( actual ) , expected , 'returns expected value' ) ;
352352
@@ -358,7 +358,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=bool
358358 var actual ;
359359 var x ;
360360
361- x = array ( new Booleanarray ( [ true , false , true , false ] ) , {
361+ x = array ( new BooleanArray ( [ true , false , true , false ] ) , {
362362 'shape' : [ 2 , 2 ] ,
363363 'dtype' : 'bool' ,
364364 'order' : 'row-major'
@@ -368,7 +368,7 @@ tape( 'the function returns a copy with the same shape and data type (dtype=bool
368368
369369 t . strictEqual ( isEqualDataType ( getDType ( actual ) , getDType ( x ) ) , true , 'returns expected value' ) ;
370370 t . deepEqual ( getShape ( actual ) , [ 2 , 2 ] , 'returns expected value' ) ;
371- t . strictEqual ( instanceOf ( getData ( actual ) , Booleanarray ) , true , 'returns expected value' ) ;
371+ t . strictEqual ( instanceOf ( getData ( actual ) , BooleanArray ) , true , 'returns expected value' ) ;
372372 t . notEqual ( getData ( actual ) , getData ( x ) , 'returns expected value' ) ;
373373 t . deepEqual ( ndarray2array ( actual ) , expected , 'returns expected value' ) ;
374374
0 commit comments