Browse Source

#30 UnitTest

remotes/origin/JaFi
jannisfingerhut 2 years ago
parent
commit
47a4cc59a5
  1. 13
      LernProgramm/testProgramm.java

13
LernProgramm/testProgramm.java

@ -60,6 +60,19 @@ class testProgramm {
assertEquals(0, result);
}
// Taschenrechner
@Test
public void testAddition1() {
double result = 2 + 3.5;
assertEquals(5.5, result, 0);
}
@Test
public void testSubtraction1() {
double result = 5 - 3.5;
assertEquals(1.5, result, 0);
}

Loading…
Cancel
Save