Browse Source

from binaray to int and then from int to binary again... works test complete

main
fdai6499 2 years ago
parent
commit
a706b8377b
  1. 14
      src/test/java/src/TasksFrameTest.java

14
src/test/java/src/TasksFrameTest.java

@ -32,11 +32,15 @@ class TasksFrameTest {
s = tasksFrame.calcBinaryToInt(1); s = tasksFrame.calcBinaryToInt(1);
assertEquals("1", s); assertEquals("1", s);
} }
//
// @Test
// public void test_binaryToIntAndIntToBinary() {
//
// }
@Test
public void test_binaryToIntAndIntToBinary() {
TasksFrame tasksFrame = new TasksFrame();
String s = tasksFrame.calcBinaryToInt(1010);
String s1 = tasksFrame.calcItoB(Integer.valueOf(s));
int of = Integer.valueOf(s1);
assertEquals(1010, of);
}
@Test @Test
void test_recursiveFib() { void test_recursiveFib() {

Loading…
Cancel
Save