Add test case for OctalToHexadecimal (#3679)
This commit is contained in:
parent
a0d03e814a
commit
0bbacb1925
@ -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")));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user