|
@ -169,6 +169,17 @@ class TasksFrameTest { |
|
|
double c = tasksFrame.bmi(1.24, 30); |
|
|
double c = tasksFrame.bmi(1.24, 30); |
|
|
assertEquals(19.51, c); |
|
|
assertEquals(19.51, c); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void test_expo(){ |
|
|
|
|
|
TasksFrame tasksFrame = new TasksFrame(); |
|
|
|
|
|
double a = tasksFrame.expo(2, 3); |
|
|
|
|
|
assertEquals(8, a); |
|
|
|
|
|
double b = tasksFrame.expo(15, 3); |
|
|
|
|
|
assertEquals(3375, b); |
|
|
|
|
|
double c = tasksFrame.expo(10, 0); |
|
|
|
|
|
assertEquals(1, c); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|