Skip to content

Commit

Permalink
Add test case for BinaryToOctal (TheAlgorithms#3696)
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmibharambe authored Oct 27, 2022
1 parent a1a2a84 commit c7b6956
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/java/com/thealgorithms/conversions/BinaryToOctalTest.java
Original file line number Diff line number Diff line change
@@ -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));
}
}

0 comments on commit c7b6956

Please sign in to comment.