Skip to content

Commit cb8b15e

Browse files
committed
Add tests
1 parent 487ade8 commit cb8b15e

File tree

1 file changed

+18
-0
lines changed
  • lib/node_modules/@stdlib/array/complex64/test

1 file changed

+18
-0
lines changed

lib/node_modules/@stdlib/array/complex64/test/test.js

+18
Original file line numberDiff line numberDiff 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+
133151
tape( 'the constructor returns a 64-bit complex number array (iterable)', function test( t ) {
134152
var Complex64Array;
135153
var arr;

0 commit comments

Comments
 (0)