Add test case for BinaryToOctal (#3696)

This commit is contained in:
rashmibharambe 2022-10-27 15:41:16 +05:30 committed by GitHub
parent a1a2a849c2
commit c7b69561a5
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 BinaryToOctalTest {
@Test
public void testBinaryToOctal() {
assertEquals("226", BinaryToOctal.convertBinaryToOctal(10010110));
assertEquals("135", BinaryToOctal.convertBinaryToOctal(1011101));
}
}