Skip to content

Commit

Permalink
Add more test cases for countSetBits().
Browse files Browse the repository at this point in the history
  • Loading branch information
trekhleb committed Aug 21, 2020
1 parent 6af6323 commit 07bc4a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/algorithms/math/bits/__test__/countSetBits.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ describe('countSetBits', () => {
expect(countSetBits(-21)).toBe(30);
expect(countSetBits(-255)).toBe(25);
expect(countSetBits(-1023)).toBe(23);
expect(countSetBits(-4294967296)).toBe(0);
});
});

0 comments on commit 07bc4a4

Please sign in to comment.