mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 22:43:30 +08:00
15 lines
366 B
Java
15 lines
366 B
Java
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));
|
|
}
|
|
}
|