Browse Source

Test Sub für Taschenrechner erstellt

remotes/origin/JaFi
jannisfingerhut 2 years ago
parent
commit
17c8389dc2
  1. 12
      LernProgramm/testProgramm.java
  2. BIN
      bin/LernProgramm/testProgramm.class

12
LernProgramm/testProgramm.java

@ -63,10 +63,16 @@ class testProgramm {
@Test @Test
public void testAddition1() { public void testAddition1() {
double result = 2 + 3;
double result = 2 + 3.5;
assertEquals(5.5, result, 0);
}
@Test
public void testSubtraction1() {
assertEquals(5.0, result, 0);
}
double result = 5-3.5;
assertEquals(1.5, result, 0);
}
} }

BIN
bin/LernProgramm/testProgramm.class

Loading…
Cancel
Save