diff --git a/LernProgramm/testProgramm.java b/LernProgramm/testProgramm.java index ff7431b..f18fcc6 100644 --- a/LernProgramm/testProgramm.java +++ b/LernProgramm/testProgramm.java @@ -60,6 +60,19 @@ class testProgramm { assertEquals(0, result); } +// Taschenrechner + @Test + public void testAddition1() { + + double result = 2 + 3.5; + assertEquals(5.5, result, 0); + } + + @Test + public void testSubtraction1() { + double result = 5 - 3.5; + assertEquals(1.5, result, 0); + }