mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-11 06:04:27 +08:00
Add test case for OctalToHexadecimal (#3679)
This commit is contained in:
@ -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")));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user