|
|
@ -126,6 +126,27 @@ class TasksFrameTest { |
|
|
|
assertEquals(70, c); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void test_roundSum(){ |
|
|
|
TasksFrame tasksFrame = new TasksFrame(); |
|
|
|
int a = tasksFrame.roundSum(15, 21, 12); |
|
|
|
assertEquals(50, a); |
|
|
|
int b = tasksFrame.roundSum(48, 25, 17); |
|
|
|
assertEquals(100, b); |
|
|
|
int c = tasksFrame.roundSum(13, 9, 26); |
|
|
|
assertEquals(50, c); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void test_round10(){ |
|
|
|
TasksFrame tasksFrame = new TasksFrame(); |
|
|
|
int a = tasksFrame.round10(15); |
|
|
|
assertEquals(20, a); |
|
|
|
int b = tasksFrame.round10(56); |
|
|
|
assertEquals(60, b); |
|
|
|
int c = tasksFrame.round10(12); |
|
|
|
assertEquals(10, c); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|