From 07bc4a4b975d7069a69421e7e6ad256ba76b721c Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Fri, 21 Aug 2020 07:29:58 +0200 Subject: [PATCH] Add more test cases for countSetBits(). --- src/algorithms/math/bits/__test__/countSetBits.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/algorithms/math/bits/__test__/countSetBits.test.js b/src/algorithms/math/bits/__test__/countSetBits.test.js index f6770ae200..a6c0fb9989 100644 --- a/src/algorithms/math/bits/__test__/countSetBits.test.js +++ b/src/algorithms/math/bits/__test__/countSetBits.test.js @@ -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); }); });