mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-05 16:36:41 +08:00
Add more test cases for countSetBits().
This commit is contained in:
@ -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);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user