File tree 1 file changed +18
-0
lines changed
lib/node_modules/@stdlib/array/complex64/test
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
130
130
t . end ( ) ;
131
131
} ) ;
132
132
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
+
133
151
tape ( 'the constructor returns a 64-bit complex number array (iterable)' , function test ( t ) {
134
152
var Complex64Array ;
135
153
var arr ;
You can’t perform that action at this time.
0 commit comments