Skip to content

Commit 0bed437

Browse files
Add test case for BinaryToHexadecimal (TheAlgorithms#3694)
1 parent c7b6956 commit 0bed437

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.thealgorithms.conversions;
2+
3+
import static org.junit.jupiter.api.Assertions.*;
4+
5+
import org.junit.jupiter.api.Test;
6+
7+
public class BinaryToHexadecimalTest {
8+
9+
@Test
10+
public void testBinaryToHexadecimal() {
11+
assertEquals("6A", BinaryToHexadecimal.binToHex(1101010));
12+
assertEquals("C", BinaryToHexadecimal.binToHex(1100));
13+
}
14+
}

0 commit comments

Comments
 (0)