Browse Source

Test Multi für Taschenrechner erstellt

remotes/origin/JaFi
jannisfingerhut 2 years ago
parent
commit
ad23ef16ab
  1. 1
      LernProgramm/ProgrammMain.java
  2. 5
      LernProgramm/testProgramm.java
  3. BIN
      bin/LernProgramm/ProgrammMain.class
  4. BIN
      bin/LernProgramm/testProgramm.class

1
LernProgramm/ProgrammMain.java

@ -65,6 +65,7 @@ public class ProgrammMain {
} else { } else {
System.out.println("Falsch!"); System.out.println("Falsch!");
} }
} }
} }

5
LernProgramm/testProgramm.java

@ -75,4 +75,9 @@ class testProgramm {
double result = 5-3.5; double result = 5-3.5;
assertEquals(1.5, result, 0); assertEquals(1.5, result, 0);
} }
@Test
public void testMultiplication1() {
double result = 5*3.5;
assertEquals(17.5, result, 0);
}
} }

BIN
bin/LernProgramm/ProgrammMain.class

BIN
bin/LernProgramm/testProgramm.class

Loading…
Cancel
Save