From 17c8389dc23642b9f18181a9a4844d163d78ffab Mon Sep 17 00:00:00 2001 From: jannisfingerhut Date: Fri, 10 Feb 2023 02:01:25 +0100 Subject: [PATCH] =?UTF-8?q?Test=20Sub=20=20f=C3=BCr=20Taschenrechner=20=20?= =?UTF-8?q?erstellt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LernProgramm/testProgramm.java | 16 +++++++++++----- bin/LernProgramm/testProgramm.class | Bin 2039 -> 2166 bytes 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/LernProgramm/testProgramm.java b/LernProgramm/testProgramm.java index 8617824..2e48e56 100644 --- a/LernProgramm/testProgramm.java +++ b/LernProgramm/testProgramm.java @@ -63,10 +63,16 @@ class testProgramm { @Test public void testAddition1() { - double result = 2 + 3; - - - assertEquals(5.0, result, 0); + double result = 2 + 3.5; + assertEquals(5.5, result, 0); + } + @Test + public void testSubtraction1() { + + + + + double result = 5-3.5; + assertEquals(1.5, result, 0); } - } diff --git a/bin/LernProgramm/testProgramm.class b/bin/LernProgramm/testProgramm.class index 134da32cba31016c30df874000fe1904396e4663..0203fd89080bab7121d970e53ffc6ec41d25561f 100644 GIT binary patch delta 145 zcmey)|4l&P)W2Q(7#JAr7{b^Ym>3x(Cr*^ysCj{zQEc)rW_c-rlGNgo;L@a$qQvBq z%=|n3x(Cr*^ysCj{zQDpKjX8FmcELx15n-f?%m|0yJ Tco^I!2XM%<2LjbIF$4hsU#$