From ba941723a0f3e9ec58fd4c872c661be216e4cfd7 Mon Sep 17 00:00:00 2001 From: fdai7446 <––fdai7446@fhfddvz1.rz.hs-fulda.de> Date: Fri, 10 Feb 2023 22:35:08 +0100 Subject: [PATCH] testKreisUmfang --- TaschenrechnerTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); + } + }