From a1a2a849c28d4584d4235e5e50a0db690d9e055e Mon Sep 17 00:00:00 2001 From: rashmibharambe <93034034+rashmibharambe@users.noreply.github.com> Date: Thu, 27 Oct 2022 15:37:13 +0530 Subject: [PATCH] Add test case for DecimalToHexaDecimal (#3697) --- .../conversions/DecimalToHexaDecimalTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/java/com/thealgorithms/conversions/DecimalToHexaDecimalTest.java diff --git a/src/test/java/com/thealgorithms/conversions/DecimalToHexaDecimalTest.java b/src/test/java/com/thealgorithms/conversions/DecimalToHexaDecimalTest.java new file mode 100644 index 00000000..de2cb7e2 --- /dev/null +++ b/src/test/java/com/thealgorithms/conversions/DecimalToHexaDecimalTest.java @@ -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)); + } +}