Skip to content

Commit

Permalink
Add test case for OctalToDecimal (#3678)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshalkhachane authored Oct 26, 2022
1 parent 0bbacb1 commit b46bf0d
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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"));
}
}

0 comments on commit b46bf0d

Please sign in to comment.