mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 23:15:17 +08:00
16 lines
504 B
Java
16 lines
504 B
Java
package com.thealgorithms.conversions;
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class HexaDecimalToBinaryTest {
|
|
|
|
@Test
|
|
public void testHexaDecimalToBinary() {
|
|
HexaDecimalToBinary hexaDecimalToBinary = new HexaDecimalToBinary();
|
|
assertEquals("1111111111111111111111111111111", hexaDecimalToBinary.convert("7fffffff"));
|
|
assertEquals("101010111100110111101111", hexaDecimalToBinary.convert("abcdef"));
|
|
}
|
|
}
|