diff --git a/LernProgramm/testProgramm.java b/LernProgramm/testProgramm.java index 8a490ef..6393402 100644 --- a/LernProgramm/testProgramm.java +++ b/LernProgramm/testProgramm.java @@ -140,6 +140,18 @@ class testProgramm { } +@Test + public void testTimer() { + int actualTime = (int) (Math.random() * 10 + 1); + int estimatedTime = (int) (Math.random() * 10 + 1); + int difference = Math.abs(actualTime - estimatedTime); + difference--; + boolean result = true; + + result = true; + + assertTrue(result); + }