mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 23:15:17 +08:00
Add Clear Bit (#4355)
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
package com.thealgorithms.bitmanipulation;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class ClearBitTest {
|
||||
@Test
|
||||
public void clearBitTest() {
|
||||
assertEquals(5, ClearBit.clearBit(7, 1));
|
||||
assertEquals(5, ClearBit.clearBit(5, 1));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user