|
|
@ -7,6 +7,29 @@ import static org.junit.jupiter.api.Assertions.*; |
|
|
|
|
|
|
|
class TasksFrameTest { |
|
|
|
|
|
|
|
@Test |
|
|
|
public void test_intToBinary() { |
|
|
|
TasksFrame tasksFrame = new TasksFrame(); |
|
|
|
String s = tasksFrame.calcBinaryToInt(1010); |
|
|
|
assertEquals("10", s); |
|
|
|
s = tasksFrame.calcBinaryToInt(10); |
|
|
|
assertEquals("2", s); |
|
|
|
s = tasksFrame.calcBinaryToInt(0); |
|
|
|
assertEquals("0", s); |
|
|
|
s = tasksFrame.calcBinaryToInt(1); |
|
|
|
assertEquals("1", s); |
|
|
|
} |
|
|
|
|
|
|
|
// @Test |
|
|
|
// public void test_binaryToInt() { |
|
|
|
// |
|
|
|
// } |
|
|
|
// |
|
|
|
// @Test |
|
|
|
// public void test_binaryToIntAndIntToBinary() { |
|
|
|
// |
|
|
|
// } |
|
|
|
|
|
|
|
@Test |
|
|
|
void test_recursiveFib() { |
|
|
|
TasksFrame tasksFrame = new TasksFrame(); |
|
|
|