From c7b69561a52ab906ec51a3164b27d2a634f4f5c2 Mon Sep 17 00:00:00 2001 From: rashmibharambe <93034034+rashmibharambe@users.noreply.github.com> Date: Thu, 27 Oct 2022 15:41:16 +0530 Subject: [PATCH] Add test case for BinaryToOctal (#3696) --- .../conversions/BinaryToOctalTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/java/com/thealgorithms/conversions/BinaryToOctalTest.java 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 00000000..39a7f670 --- /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)); + } +}