Browse Source

Mulit und Divi Test für Binärrechner hinzugefügt

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

13
LernProgramm/testProgramm.java

@ -46,4 +46,17 @@ class testProgramm {
assertTrue(true);
}
}
@Test
public void testDivision() {
int result = ProgrammMain.calculate("1010", "1011", '/');
assertEquals(0, result);
}
@Test
public void testInvalidOperation() {
int result = ProgrammMain.calculate("1010", "1011", '%');
assertEquals(0, result);
}
}

BIN
bin/LernProgramm/testProgramm.class

Loading…
Cancel
Save