mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 06:55:02 +08:00
16 lines
390 B
Java
16 lines
390 B
Java
package com.thealgorithms.bitmanipulation;
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
class ReverseBitsTest {
|
|
|
|
@Test
|
|
void testReverseBits() {
|
|
assertEquals(0, ReverseBits.reverseBits(0));
|
|
assertEquals(-1, ReverseBits.reverseBits(-1));
|
|
assertEquals(964176192, ReverseBits.reverseBits(43261596));
|
|
}
|
|
}
|