|
@ -18,11 +18,24 @@ class TasksFrameTest { |
|
|
{ |
|
|
{ |
|
|
TasksFrame tasksFrame = new TasksFrame(); |
|
|
TasksFrame tasksFrame = new TasksFrame(); |
|
|
int x = tasksFrame.Fakultaet(5); |
|
|
int x = tasksFrame.Fakultaet(5); |
|
|
assertEquals(120,x); |
|
|
|
|
|
|
|
|
assertEquals(120, x, 0.01); |
|
|
int x2 = tasksFrame.Fakultaet(1); |
|
|
int x2 = tasksFrame.Fakultaet(1); |
|
|
assertEquals(1,x2); |
|
|
|
|
|
|
|
|
assertEquals(1, x2, 0.01); |
|
|
int x3 = tasksFrame.Fakultaet(0); |
|
|
int x3 = tasksFrame.Fakultaet(0); |
|
|
assertEquals(0,x3); |
|
|
|
|
|
|
|
|
assertEquals(0, x3, 0.01); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void setupTemperatur() |
|
|
|
|
|
{ |
|
|
|
|
|
TasksFrame tasksFrame = new TasksFrame(); |
|
|
|
|
|
double x = tasksFrame.temperatur(-10.6); |
|
|
|
|
|
assertEquals(262.55,x); |
|
|
|
|
|
double x2 = tasksFrame.temperatur(8.0); |
|
|
|
|
|
assertEquals(281.15,x2); |
|
|
|
|
|
double x3 = tasksFrame.temperatur(0); |
|
|
|
|
|
assertEquals(273.15,x3); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|