Add test case for OctalToDecimal (#3678)

This commit is contained in:
harshalkhachane 2022-10-26 21:36:25 +05:30 committed by GitHub
parent 0bbacb1925
commit b46bf0d9b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"));
}
}