diff --git a/src/test/java/src/TasksFrameTest.java b/src/test/java/src/TasksFrameTest.java index 351f9e8..a6b7fbb 100644 --- a/src/test/java/src/TasksFrameTest.java +++ b/src/test/java/src/TasksFrameTest.java @@ -20,10 +20,18 @@ class TasksFrameTest { assertEquals("1", s); } -// @Test -// public void test_binaryToInt() { -// -// } + @Test + public void test_binaryToInt() { + TasksFrame tasksFrame = new TasksFrame(); + String s = tasksFrame.calcItoB(10); + assertEquals("1010", s); + s = tasksFrame.calcBinaryToInt(1); + assertEquals("1", s); + s = tasksFrame.calcBinaryToInt(0); + assertEquals("0", s); + s = tasksFrame.calcBinaryToInt(1); + assertEquals("1", s); + } // // @Test // public void test_binaryToIntAndIntToBinary() {