Skip to content

Commit 2787651

Browse files
committed
Auto-generated commit
1 parent 678815c commit 2787651

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ tape( 'the function counts the number of same values (complex typed array)', fun
178178
expected = 1;
179179
actual = countSameValue( x, new Complex128( 3.0, 4.0 ) );
180180

181+
t.strictEqual( actual, expected, 'returns expected value' );
182+
183+
x = new Complex128Array( [ 0.0, 0.0, 1.0, 0.0, 3.0, 4.0, 0.0, 5.0 ] );
184+
expected = 0;
185+
actual = countSameValue( x, 0.0 );
186+
181187
t.strictEqual( actual, expected, 'returns expected value' );
182188
t.end();
183189
});

0 commit comments

Comments
 (0)