Browse Source

Test Divi für Taschenrechner erstellt

remotes/origin/JaFi
jannisfingerhut 2 years ago
parent
commit
ebca0aa551
  1. 5
      LernProgramm/testProgramm.java
  2. BIN
      bin/LernProgramm/testProgramm.class

5
LernProgramm/testProgramm.java

@ -80,4 +80,9 @@ class testProgramm {
double result = 5*3.5; double result = 5*3.5;
assertEquals(17.5, result, 0); assertEquals(17.5, result, 0);
} }
@Test
public void testDivision1() {
double result = 15/10;
assertEquals(1, result, 0);
}
} }

BIN
bin/LernProgramm/testProgramm.class

Loading…
Cancel
Save