-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case for DecimalToHexaDecimal (#3697)
- Loading branch information
1 parent
38eadd9
commit a1a2a84
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/test/java/com/thealgorithms/conversions/DecimalToHexaDecimalTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} | ||
} |