Skip to content

Commit

Permalink
Add test case for DecimalToHexaDecimal (#3697)
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmibharambe authored Oct 27, 2022
1 parent 38eadd9 commit a1a2a84
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 DecimalToHexaDecimalTest {

@Test
public void testDecimalToHexaDecimal() {
assertEquals("000000be", DecimalToHexaDecimal.decToHex(190));
assertEquals("00000708", DecimalToHexaDecimal.decToHex(1800));
}
}

0 comments on commit a1a2a84

Please sign in to comment.