From a9a1c961197aa271614048e23cae2181a863c595 Mon Sep 17 00:00:00 2001 From: jannisfingerhut Date: Fri, 10 Feb 2023 01:44:33 +0100 Subject: [PATCH] =?UTF-8?q?Mulit=20und=20Divi=20=20Test=20f=C3=BCr=20Bin?= =?UTF-8?q?=C3=A4rrechner=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LernProgramm/testProgramm.java | 13 +++++++++++++ bin/LernProgramm/testProgramm.class | Bin 1650 -> 1892 bytes 2 files changed, 13 insertions(+) diff --git a/LernProgramm/testProgramm.java b/LernProgramm/testProgramm.java index d453362..8631d37 100644 --- a/LernProgramm/testProgramm.java +++ b/LernProgramm/testProgramm.java @@ -46,4 +46,17 @@ class testProgramm { assertTrue(true); } } + + @Test + public void testDivision() { + int result = ProgrammMain.calculate("1010", "1011", '/'); + assertEquals(0, result); + } + + @Test + public void testInvalidOperation() { + int result = ProgrammMain.calculate("1010", "1011", '%'); + assertEquals(0, result); + } + } diff --git a/bin/LernProgramm/testProgramm.class b/bin/LernProgramm/testProgramm.class index 1197d7ba5e6a131348b99ccb39af4d170d48333e..2f70569ec73d08c65a499bb491cc0ea87c5f224f 100644 GIT binary patch delta 249 zcmeyw^Mp^})W2Q(7#JAr7<||nm>3x(Cr*^ys5y&So~IKaY_?1jO~s zD@)ADOz|&BEt8xrpX2@B7r^(%nVFGa|DDegscSgcQDx4FiY=XaM%bG zV`AU}l6*iF3=AefwkZQYgBb%ikS7Mw!@$G93*>PzurW9@xG*pRq32|M7SV82Q&n-A UY6aA54K&q;fT>3x(Cr*^ys5y&y@=IndMz+l&EcHyR3=B*Ro&Zc2 B3+ey>