Skip to content

Commit 3b72294

Browse files
committed
Commit BinaryToGrayTest
1 parent 91c1992 commit 3b72294

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package src.test.java.com.conversions;
2+
3+
import src.main.java.com.conversions.BinaryToGray;
4+
import org.junit.Test;
5+
import static org.junit.Assert.assertEquals;
6+
7+
public class BinaryToGrayTest
8+
{
9+
10+
11+
@Test
12+
public void testBinaryToGray()
13+
{
14+
BinaryToGray btog=new BinaryToGray();
15+
assertEquals("1101",btog.binaryToGray("1001"));
16+
assertEquals("11010011101",btog.binaryToGray("10011101001"));
17+
}
18+
19+
}

0 commit comments

Comments
 (0)