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

2 years ago
2 years ago
2 years ago
2 years ago
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. int a = 14;
  24. int b = 7;
  25. int ab = a / b;
  26. int result = Taschenrechner.division(a, b);
  27. assertEquals(ab, result);
  28. }
  29. @Test
  30. public void testPotenzieren() {
  31. }
  32. @Test
  33. public void testKleinerAls() {
  34. }
  35. @Test
  36. public void testGroeßerAls() {
  37. }
  38. @Test
  39. public void testGleich() {
  40. }
  41. @Test
  42. public void testRandomIntegerNummer() {
  43. }
  44. }