From 5a7125fecba9c6a75417257ca6220824ab271f84 Mon Sep 17 00:00:00 2001 From: jannisfingerhut Date: Fri, 10 Feb 2023 01:41:43 +0100 Subject: [PATCH] =?UTF-8?q?Negativ=20Test=20f=C3=BCr=20Bin=C3=A4rrechner?= =?UTF-8?q?=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LernProgramm/testProgramm.java | 9 ++++++++- bin/LernProgramm/testProgramm.class | Bin 1329 -> 1496 bytes 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/LernProgramm/testProgramm.java b/LernProgramm/testProgramm.java index 48501cf..3c512d8 100644 --- a/LernProgramm/testProgramm.java +++ b/LernProgramm/testProgramm.java @@ -30,5 +30,12 @@ class testProgramm { int result = ProgrammMain.calculate("1010", "1011", '+'); assertEquals(10101, result); } - + @Test + public void testSubtraction() { + int result = ProgrammMain.calculate("1010", "1011", '-'); + result++; + if (result <0 || result >0) { + assertTrue(true); + } + } } diff --git a/bin/LernProgramm/testProgramm.class b/bin/LernProgramm/testProgramm.class index 583d3d5da4e54dfbf7e29df5c169ad58065d9585..e8f86aec4be647afe37782a5f43217cf425e87e4 100644 GIT binary patch delta 212 zcmdnUb%R^r)W2Q(7#JAr7(Ce-m>3x(Cr*^ysF}>Hz+aMDToPQGR8o|fT#}ie$H>4N zT#}fa?VDH-l9-f}I=PEkhmm#jcIHyXdNu|o27aI+Yz&MH0zjG_h_e}(fualyQbHC& zRsy;^7;J1>7#XE!Gq6j~V_;|5!63L1D9g;i1ti57Sb?N6kgdYN%b?02%Am#|$)Lf& p4VD9&!oUNRVF0QSU~pz|0ovmR3x(Cr*^ysF}<>c^$JBBg^KS%%zO13=B*RZU8+^ B3)cVu