Add test case for DecimalToHexaDecimal (#3697)

This commit is contained in:
rashmibharambe 2022-10-27 15:37:13 +05:30 committed by GitHub
parent 38eadd928a
commit a1a2a849c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 DecimalToHexaDecimalTest {
@Test
public void testDecimalToHexaDecimal() {
assertEquals("000000be", DecimalToHexaDecimal.decToHex(190));
assertEquals("00000708", DecimalToHexaDecimal.decToHex(1800));
}
}