|
|
@ -158,6 +158,17 @@ class TasksFrameTest { |
|
|
|
int c = Integer.parseInt(tasksFrame.umrechnen(48)); |
|
|
|
assertEquals(110000, c); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void test_bmi(){ |
|
|
|
TasksFrame tasksFrame = new TasksFrame(); |
|
|
|
double a = tasksFrame.bmi(1.65, 60.0); |
|
|
|
assertEquals(22.04, a); |
|
|
|
double b = tasksFrame.bmi(1.95, 72); |
|
|
|
assertEquals(18.93, b); |
|
|
|
double c = tasksFrame.bmi(1.24, 30); |
|
|
|
assertEquals(19.51, c); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|