Browse Source

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

main
fdai6499 2 years ago
committed by fdai6040
parent
commit
1cf003fc27
  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);
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
void test_recursiveFib() {

Loading…
Cancel
Save