Add test case for OctalToDecimal (#3678)
This commit is contained in:
parent
0bbacb1925
commit
b46bf0d9b0
@ -0,0 +1,14 @@
|
|||||||
|
package com.thealgorithms.conversions;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
public class OctalToDecimalTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testOctalToDecimal() {
|
||||||
|
assertEquals(1465, OctalToDecimal.convertOctalToDecimal("2671"));
|
||||||
|
assertEquals(189, OctalToDecimal.convertOctalToDecimal("275"));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user