mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-10 21:43:15 +08:00
Add test case for DecimalToHexaDecimal (#3697)
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 DecimalToHexaDecimalTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testDecimalToHexaDecimal() {
|
||||||
|
assertEquals("000000be", DecimalToHexaDecimal.decToHex(190));
|
||||||
|
assertEquals("00000708", DecimalToHexaDecimal.decToHex(1800));
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user