You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

64 lines
875 B

package programmiermethoden_und_Werkzeuge;
import static org.junit.Assert.*;
import org.junit.Test;
public class TaschenrechnerTest {
@Test
public void testAddition() {
int a = 3;
int b = 4;
int ab = a + b;
int result = Taschenrechner.addition(a,b);
assertEquals(ab, result);
}
@Test
public void testMultiplikation() {
int a = 6;
int b = 6;
int ab = a * b;
int result = Taschenrechner.multiplikation(a, b);
assertEquals(ab, result);
}
@Test
public void testDivision() {
int a = 14;
int b = 7;
int ab = a / b;
int result = Taschenrechner.division(a, b);
assertEquals(ab, result);
}
@Test
public void testPotenzieren() {
}
@Test
public void testKleinerAls() {
}
@Test
public void testGroeßerAls() {
}
@Test
public void testGleich() {
}
@Test
public void testRandomIntegerNummer() {
}
}