File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
lib/node_modules/@stdlib/array/complex64/test Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,24 @@ tape( 'the constructor returns a 64-bit complex number array (typed array, no ne
130130 t . end ( ) ;
131131} ) ;
132132
133+ tape ( 'the constructor returns a 64-bit complex number array (complex typed array)' , function test ( t ) {
134+ var arr = new Complex64Array ( new Complex64Array ( 0 ) ) ;
135+ t . strictEqual ( arr instanceof Complex64Array , true , 'returns an instance' ) ;
136+ t . end ( ) ;
137+ } ) ;
138+
139+ tape ( 'the constructor returns a 64-bit complex number array (complex typed array, no new)' , function test ( t ) {
140+ var ctor ;
141+ var arr ;
142+
143+ ctor = Complex64Array ;
144+
145+ arr = ctor ( new Complex64Array ( 0 ) ) ;
146+ t . strictEqual ( arr instanceof Complex64Array , true , 'returns an instance' ) ;
147+
148+ t . end ( ) ;
149+ } ) ;
150+
133151tape ( 'the constructor returns a 64-bit complex number array (iterable)' , function test ( t ) {
134152 var Complex64Array ;
135153 var arr ;
You can’t perform that action at this time.
0 commit comments