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.

59 lines
756 B

2 years ago
2 years ago
2 years ago
  1. package programmiermethoden_und_Werkzeuge;
  2. import static org.junit.Assert.*;
  3. import org.junit.Test;
  4. public class TaschenrechnerTest {
  5. @Test
  6. public void testAddition() {
  7. int a = 3;
  8. int b = 4;
  9. int ab = a + b;
  10. int result = Taschenrechner.addition(a,b);
  11. assertEquals(ab, result);
  12. }
  13. @Test
  14. public void testMultiplikation() {
  15. int a = 6;
  16. int b = 6;
  17. int ab = a * b;
  18. int result = Taschenrechner.multiplikation(a, b);
  19. assertEquals(ab, result);
  20. }
  21. @Test
  22. public void testDivision() {
  23. }
  24. @Test
  25. public void testPotenzieren() {
  26. }
  27. @Test
  28. public void testKleinerAls() {
  29. }
  30. @Test
  31. public void testGroeßerAls() {
  32. }
  33. @Test
  34. public void testGleich() {
  35. }
  36. @Test
  37. public void testRandomIntegerNummer() {
  38. }
  39. }