From 61118c48c05fafa05de9d8c8ded0674275d6abae Mon Sep 17 00:00:00 2001 From: jannisfingerhut Date: Fri, 10 Feb 2023 01:42:47 +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 | 8 ++++++++ bin/LernProgramm/testProgramm.class | Bin 1496 -> 1650 bytes 2 files changed, 8 insertions(+) diff --git a/LernProgramm/testProgramm.java b/LernProgramm/testProgramm.java index 3c512d8..d453362 100644 --- a/LernProgramm/testProgramm.java +++ b/LernProgramm/testProgramm.java @@ -38,4 +38,12 @@ class testProgramm { assertTrue(true); } } + @Test + public void testMultiplication() { + 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 e8f86aec4be647afe37782a5f43217cf425e87e4..1197d7ba5e6a131348b99ccb39af4d170d48333e 100644 GIT binary patch delta 99 zcmcb?{fS55)W2Q(7#JAr7`)gSm>3x(Cr*^ysM*RaEL4(OT;f}rQ<7PblbM`Yl9``3 zc@47;BirVi%)b~X`>`r9YE3R=RTk7{;9}5W;APNd5M|I~kYq5Jyp&ak-2-SQ6N4uJ D^_&^T delta 45 zcmeywbAwyp)W2Q(7#JAr7(Ce-m>3x(Cr*^ysM*Rq`7pB