Add test case for BinaryToHexadecimal (#3694)

This commit is contained in:
rashmibharambe 2022-10-27 15:45:39 +05:30 committed by GitHub
parent c7b69561a5
commit 0bed437eb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,14 @@
package com.thealgorithms.conversions;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
public class BinaryToHexadecimalTest {
@Test
public void testBinaryToHexadecimal() {
assertEquals("6A", BinaryToHexadecimal.binToHex(1101010));
assertEquals("C", BinaryToHexadecimal.binToHex(1100));
}
}