From 06ea4eccf152013960fde8cbad176f9d13ba1702 Mon Sep 17 00:00:00 2001 From: fdai7446 <––fdai7446@fhfddvz1.rz.hs-fulda.de> Date: Fri, 10 Feb 2023 21:19:10 +0100 Subject: [PATCH] testAddition --- TaschenrechnerTest.java | 54 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 TaschenrechnerTest.java diff --git a/TaschenrechnerTest.java b/TaschenrechnerTest.java new file mode 100644 index 0000000..e50976f --- /dev/null +++ b/TaschenrechnerTest.java @@ -0,0 +1,54 @@ +package programmiermethoden_und_Werkzeuge; + +import static org.junit.Assert.*; + +import org.junit.Test; + +public class TaschenrechnerTest { + + @Test + public void testAddition() { + int a = 3; + int b = 4; + int ab = a + b; + int result = Taschenrechner.addition(a,b); + + assertEquals(ab, result); + } + + @Test + public void testMultiplikation() { + + } + + @Test + public void testDivision() { + + } + + @Test + public void testPotenzieren() { + + } + + @Test + public void testKleinerAls() { + + } + + @Test + public void testGroeßerAls() { + + } + + @Test + public void testGleich() { + + } + + @Test + public void testRandomIntegerNummer() { + + } + +}