diff --git a/src/test/java/com/thealgorithms/conversions/BinaryToOctalTest.java b/src/test/java/com/thealgorithms/conversions/BinaryToOctalTest.java new file mode 100644 index 000000000000..39a7f67024f1 --- /dev/null +++ b/src/test/java/com/thealgorithms/conversions/BinaryToOctalTest.java @@ -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)); + } +}