Browse Source

testRandomIntegerNummer

remotes/origin/fdai7487-main-patch-56841
fdai7446 2 years ago
parent
commit
2ddb775b3a
  1. 5
      TaschenrechnerTest.java

5
TaschenrechnerTest.java

@ -78,7 +78,12 @@ public class TaschenrechnerTest {
@Test
public void testRandomIntegerNummer() {
int a = 2;
int b = 10;
int r = (int) (Math.random() * (a + 1)) + b;
boolean result = r > a && r >= b;
assertEquals(true, result);
}
}
Loading…
Cancel
Save