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 1197d7b..2f70569 100644 Binary files a/bin/LernProgramm/testProgramm.class and b/bin/LernProgramm/testProgramm.class differ