We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bed437 commit 838916dCopy full SHA for 838916d
src/test/java/com/thealgorithms/conversions/HexaDecimalToDecimalTest.java
@@ -0,0 +1,14 @@
1
+package com.thealgorithms.conversions;
2
+
3
+import org.junit.jupiter.api.Test;
4
5
+import static org.junit.jupiter.api.Assertions.assertEquals;
6
7
+public class HexaDecimalToDecimalTest {
8
9
+ @Test
10
+ public void testhexaDecimalToDecimal(){
11
+ assertEquals(161, HexaDecimalToDecimal.getHexaToDec("A1"));
12
+ assertEquals(428, HexaDecimalToDecimal.getHexaToDec("1ac"));
13
+ }
14
+}
0 commit comments