|
@ -20,10 +20,18 @@ class TasksFrameTest { |
|
|
assertEquals("1", s); |
|
|
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 |
|
|
// @Test |
|
|
// public void test_binaryToIntAndIntToBinary() { |
|
|
// public void test_binaryToIntAndIntToBinary() { |
|
|