Skip to content

Commit

Permalink
Add test case for OctalToHexadecimal (TheAlgorithms#3679)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshalkhachane authored Oct 26, 2022
1 parent a0d03e8 commit 0bbacb1
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 OctalToHexadecimalTest {

@Test
public void testOctalToHexadecimal() {
assertEquals("1EA", OctalToHexadecimal.decimalToHex(OctalToHexadecimal.octToDec("752")));
assertEquals("15E", OctalToHexadecimal.decimalToHex(OctalToHexadecimal.octToDec("536")));
}
}

0 comments on commit 0bbacb1

Please sign in to comment.