Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 07bc4a4

Browse files
committedAug 21, 2020
Add more test cases for countSetBits().
1 parent 6af6323 commit 07bc4a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/algorithms/math/bits/__test__/countSetBits.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ describe('countSetBits', () => {
1515
expect(countSetBits(-21)).toBe(30);
1616
expect(countSetBits(-255)).toBe(25);
1717
expect(countSetBits(-1023)).toBe(23);
18+
expect(countSetBits(-4294967296)).toBe(0);
1819
});
1920
});

0 commit comments

Comments
 (0)
Please sign in to comment.