Skip to content

Commit 9d7da34

Browse files
committed
test: add test case to ensure full test coverage
Ref: #1339 Ref: 634044b
1 parent 2548359 commit 9d7da34

File tree

1 file changed

+6
-0
lines changed
  • lib/node_modules/@stdlib/array/base/count-same-value/test

1 file changed

+6
-0
lines changed

lib/node_modules/@stdlib/array/base/count-same-value/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)