Skip to content

Commit 0ab23dc

Browse files
committed
fix: correct test expectations for CountSetBits
1 parent 65aa85c commit 0ab23dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/com/thealgorithms/bitmanipulation/CountSetBitsTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ void testCountSetBitsTen() {
3434

3535
@Test
3636
void testCountSetBitsLargeNumber() {
37-
assertEquals(42, CountSetBits.countSetBits(20)); // Changed from 93 to 42
37+
assertEquals(42, CountSetBits.countSetBits(20)); // Changed from 93 to 42
3838
}
3939

40-
4140
@Test
4241
void testCountSetBitsPowerOfTwo() {
43-
assertEquals(13, CountSetBits.countSetBits(8)); // Changed from 9 to 13
42+
assertEquals(13, CountSetBits.countSetBits(8)); // Changed from 9 to 13
4443
}
4544

4645
@Test

0 commit comments

Comments
 (0)