Browse Source

#31 UnitTest

remotes/origin/JaFi
jannisfingerhut 2 years ago
parent
commit
061d39fc57
  1. 12
      LernProgramm/testProgramm.java

12
LernProgramm/testProgramm.java

@ -74,6 +74,18 @@ class testProgramm {
assertEquals(1.5, result, 0);
}
@Test
public void testMultiplication1() {
double result = 5 * 3.5;
assertEquals(17.5, result, 0);
}
@Test
public void testDivision1() {
double result = 15 / 10;
assertEquals(1, result, 0);
}

Loading…
Cancel
Save