Skip to content

Commit 40561cf

Browse files
committed
Fix formatting for CountTotalSetBits to match clang-format
1 parent fa26245 commit 40561cf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

2

Whitespace-only changes.

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.thealgorithms.bitmanipulation;
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
45
import org.junit.jupiter.api.Test;
56

67
/**
@@ -10,13 +11,13 @@ public class CountTotalSetBitsTest {
1011

1112
@Test
1213
void testSmallNumbers() {
13-
assertEquals(4, CountTotalSetBits.countTotalSetBits(3)); // 1->1,2->1,3->2
14-
assertEquals(5, CountTotalSetBits.countTotalSetBits(4)); // 1,2,3,4 -> total 5
14+
assertEquals(4, CountTotalSetBits.countTotalSetBits(3)); // 1->1,2->1,3->2
15+
assertEquals(5, CountTotalSetBits.countTotalSetBits(4)); // 1,2,3,4 -> total 5
1516
}
1617

1718
@Test
1819
void testPowerOfTwo() {
19-
assertEquals(12, CountTotalSetBits.countTotalSetBits(7)); // from 1 to 7
20+
assertEquals(12, CountTotalSetBits.countTotalSetBits(7)); // from 1 to 7
2021
}
2122

2223
@Test

total

Whitespace-only changes.

0 commit comments

Comments
 (0)