File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/test/java/com/thealgorithms/bitmanipulation Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
package com .thealgorithms .bitmanipulation ;
2
2
3
- import org .junit .Test ;
4
-
5
3
import static org .junit .Assert .assertEquals ;
6
4
5
+ import org .junit .Test ;
6
+
7
7
public class SingleBitOperatorTest {
8
8
9
9
@ Test
@@ -13,20 +13,20 @@ public void flipBitTest() {
13
13
}
14
14
15
15
@ Test
16
- public void setBitTest (){
16
+ public void setBitTest () {
17
17
assertEquals (5 , SingleBitOperators .setBit (4 , 0 ));
18
18
assertEquals (4 , SingleBitOperators .setBit (4 , 2 ));
19
19
20
20
}
21
21
22
22
@ Test
23
23
public void clearBitTest () {
24
- assertEquals (5 , SingleBitOperators .clearBit (7 ,1 ));
25
- assertEquals (5 , SingleBitOperators .clearBit (5 ,1 ));
24
+ assertEquals (5 , SingleBitOperators .clearBit (7 , 1 ));
25
+ assertEquals (5 , SingleBitOperators .clearBit (5 , 1 ));
26
26
}
27
27
28
28
@ Test
29
- public void getBitTest (){
29
+ public void getBitTest () {
30
30
assertEquals (0 , SingleBitOperators .getBit (6 , 0 ));
31
31
assertEquals (1 , SingleBitOperators .getBit (7 , 1 ));
32
32
}
You can’t perform that action at this time.
0 commit comments