Skip to content

Commit b46bf0d

Browse files
Add test case for OctalToDecimal (TheAlgorithms#3678)
1 parent 0bbacb1 commit b46bf0d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 OctalToDecimalTest {
8+
9+
@Test
10+
public void testOctalToDecimal() {
11+
assertEquals(1465, OctalToDecimal.convertOctalToDecimal("2671"));
12+
assertEquals(189, OctalToDecimal.convertOctalToDecimal("275"));
13+
}
14+
}

0 commit comments

Comments
 (0)