File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/test/java/com/thealgorithms/bitmanipulation Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,14 @@ class SwapAdjacentBitsTest {
99
1010 @ ParameterizedTest
1111 @ CsvSource ({
12- "2, 1" , // 2 (10 in binary) should become 1 (01 in binary)
13- "43, 23" , // 43 should become 23
12+ "2, 1" , // 2 (10 in binary) should become 1 (01 in binary)
13+ "43, 23" , // 43 should become 23
1414 "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" , // 15 (1111) remains 15 (1111)
16+ "0, 0" // 0 (0000) remains 0 (0000)
1717 })
18- void testSwapAdjacentBits (int input , int expected ) {
18+ void
19+ testSwapAdjacentBits (int input , int expected ) {
1920 assertEquals (expected , SwapAdjacentBits .swapAdjacentBits (input ));
2021 }
2122}
You can’t perform that action at this time.
0 commit comments