mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-27 15:41:16 +08:00
Add more test cases for countSetBits().
This commit is contained in:
parent
6af63239ab
commit
07bc4a4b97
@ -15,5 +15,6 @@ describe('countSetBits', () => {
|
|||||||
expect(countSetBits(-21)).toBe(30);
|
expect(countSetBits(-21)).toBe(30);
|
||||||
expect(countSetBits(-255)).toBe(25);
|
expect(countSetBits(-255)).toBe(25);
|
||||||
expect(countSetBits(-1023)).toBe(23);
|
expect(countSetBits(-1023)).toBe(23);
|
||||||
|
expect(countSetBits(-4294967296)).toBe(0);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user