From f0d37d4e44c7a82a5e9afff35618d8b070028c4a Mon Sep 17 00:00:00 2001 From: jannisfingerhut Date: Fri, 10 Feb 2023 23:31:30 +0100 Subject: [PATCH] test --- LernProgramm/testProgramm.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); + }