|
|
@ -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() { |
|
|
|