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 0365afa commit 2e25f89Copy full SHA for 2e25f89
src/test/java/com/thealgorithms/conversions/HexToOctTest.java
@@ -0,0 +1,14 @@
1
+package com.thealgorithms.conversions;
2
+
3
+import static org.junit.jupiter.api.Assertions.*;
4
5
+import org.junit.jupiter.api.Test;
6
7
+public class HexToOctTest {
8
9
+ @Test
10
+ public void testHexToOct() {
11
+ assertEquals(110, HexToOct.decimal2octal(HexToOct.hex2decimal("48")));
12
+ assertEquals(255, HexToOct.decimal2octal(HexToOct.hex2decimal("AD")));
13
+ }
14
+}
0 commit comments