Skip to content

Commit c7b6956

Browse files
Add test case for BinaryToOctal (TheAlgorithms#3696)
1 parent a1a2a84 commit c7b6956

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.thealgorithms.conversions;
2+
3+
import static org.junit.jupiter.api.Assertions.*;
4+
5+
import org.junit.jupiter.api.Test;
6+
7+
public class BinaryToOctalTest {
8+
9+
@Test
10+
public void testBinaryToOctal() {
11+
assertEquals("226", BinaryToOctal.convertBinaryToOctal(10010110));
12+
assertEquals("135", BinaryToOctal.convertBinaryToOctal(1011101));
13+
}
14+
}

0 commit comments

Comments
 (0)