|
@ -86,4 +86,15 @@ public class TaschenrechnerTest { |
|
|
assertEquals(true, result); |
|
|
assertEquals(true, result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("deprecation") |
|
|
|
|
|
@Test |
|
|
|
|
|
public void testKreisUmfang() { |
|
|
|
|
|
int r = 3; |
|
|
|
|
|
double u = 2* r *Math.PI; |
|
|
|
|
|
double result = Taschenrechner.kreisUmfang(r); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals(u, result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
xxxxxxxxxx