@@ -298,7 +298,7 @@ tape( 'the function compares a typed array and a corresponding return annotation
298
298
299
299
actual = new Float64Array ( [ 0 , 2 , 3 ] ) ;
300
300
expected = '<Float32Array>[ 0, 2, 2 ]' ;
301
- msg = 'Expected instance type <Float64Array >, but observed <Float32Array >' ;
301
+ msg = 'Expected instance type <Float32Array >, but observed <Float64Array >' ;
302
302
t . strictEqual ( compareValues ( actual , expected ) , msg , 'returns expected message' ) ;
303
303
304
304
buf = new Float32Array ( [ 1.0 , - 1.0 , 2.0 , - 2.0 ] ) ;
@@ -360,6 +360,11 @@ tape( 'the function compares a complex number and a corresponding return annotat
360
360
msg = 'Expected array entries [2,4], but observed [2,3]' ;
361
361
t . strictEqual ( compareValues ( actual , expected ) , msg , 'returns expected message' ) ;
362
362
363
+ actual = new Complex64 ( 2.0 , 3.0 ) ;
364
+ expected = '<Complex128>[ 2.0, 3.0 ]' ;
365
+ msg = 'Expected instance type <Complex128>, but observed <Complex64>' ;
366
+ t . strictEqual ( compareValues ( actual , expected ) , msg , 'returns expected message' ) ;
367
+
363
368
t . end ( ) ;
364
369
} ) ;
365
370
0 commit comments