mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-14 01:16:07 +08:00
Add test case for OctalToDecimal (#3678)
This commit is contained in:
@ -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"));
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user