We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91c1992 commit 3b72294Copy full SHA for 3b72294
src/test/java/com/conversions/BinaryToGrayTest.java
@@ -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