@@ -298,7 +298,7 @@ tape( 'the function compares a typed array and a corresponding return annotation
298298
299299 actual = new Float64Array ( [ 0 , 2 , 3 ] ) ;
300300 expected = '<Float32Array>[ 0, 2, 2 ]' ;
301- msg = 'Expected instance type <Float64Array >, but observed <Float32Array >' ;
301+ msg = 'Expected instance type <Float32Array >, but observed <Float64Array >' ;
302302 t . strictEqual ( compareValues ( actual , expected ) , msg , 'returns expected message' ) ;
303303
304304 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
360360 msg = 'Expected array entries [2,4], but observed [2,3]' ;
361361 t . strictEqual ( compareValues ( actual , expected ) , msg , 'returns expected message' ) ;
362362
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+
363368 t . end ( ) ;
364369} ) ;
365370
0 commit comments