mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2026-03-13 08:51:02 +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