diff --git a/TaschenrechnerTest.java b/TaschenrechnerTest.java index 7c3a42d..3f3df53 100644 --- a/TaschenrechnerTest.java +++ b/TaschenrechnerTest.java @@ -85,5 +85,16 @@ public class TaschenrechnerTest { 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); + } + }