From 061d39fc5791d48027d09b96a50bf167f06dba60 Mon Sep 17 00:00:00 2001 From: jannisfingerhut Date: Fri, 10 Feb 2023 23:22:27 +0100 Subject: [PATCH] #31 UnitTest --- LernProgramm/testProgramm.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/LernProgramm/testProgramm.java b/LernProgramm/testProgramm.java index f18fcc6..16652e1 100644 --- a/LernProgramm/testProgramm.java +++ b/LernProgramm/testProgramm.java @@ -74,6 +74,18 @@ class testProgramm { assertEquals(1.5, result, 0); } +@Test + public void testMultiplication1() { + double result = 5 * 3.5; + assertEquals(17.5, result, 0); + } + + @Test + public void testDivision1() { + double result = 15 / 10; + assertEquals(1, result, 0); + } +