We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b46a1b4 commit ffb0ed8Copy full SHA for ffb0ed8
src/test/java/com/thealgorithms/bitmanipulation/SwapAdjacentBitsTest.java
@@ -9,13 +9,14 @@ class SwapAdjacentBitsTest {
9
10
@ParameterizedTest
11
@CsvSource({
12
- "2, 1", // 2 (10 in binary) should become 1 (01 in binary)
13
- "43, 23", // 43 should become 23
+ "2, 1", // 2 (10 in binary) should become 1 (01 in binary)
+ "43, 23", // 43 should become 23
14
"153, 102", // 153 should become 102
15
- "15, 15", // 15 (1111) remains 15 (1111)
16
- "0, 0" // 0 (0000) remains 0 (0000)
+ "15, 15", // 15 (1111) remains 15 (1111)
+ "0, 0" // 0 (0000) remains 0 (0000)
17
})
18
- void testSwapAdjacentBits(int input, int expected) {
+ void
19
+ testSwapAdjacentBits(int input, int expected) {
20
assertEquals(expected, SwapAdjacentBits.swapAdjacentBits(input));
21
}
22
0 commit comments