Add test case for OctalToHexadecimal (#3679)

This commit is contained in:
harshalkhachane
2022-10-26 21:34:26 +05:30
committed by GitHub
parent a0d03e814a
commit 0bbacb1925

View File

@ -0,0 +1,14 @@
package com.thealgorithms.conversions;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
public class OctalToHexadecimalTest {
@Test
public void testOctalToHexadecimal() {
assertEquals("1EA", OctalToHexadecimal.decimalToHex(OctalToHexadecimal.octToDec("752")));
assertEquals("15E", OctalToHexadecimal.decimalToHex(OctalToHexadecimal.octToDec("536")));
}
}