|
|
@ -104,7 +104,6 @@ class testProgramm { |
|
|
|
|
|
|
|
assertEquals("120\n", out.toString()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
public void testFakultaetWithZero() { |
|
|
@ -140,31 +139,24 @@ class testProgramm { |
|
|
|
assertEquals(expected, actual); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int getNumber() { |
|
|
|
return 0; |
|
|
|
} |
|
|
|
@Test |
|
|
|
public void testTimer() { |
|
|
|
int actualTime = (int) (Math.random() * 10 + 1); |
|
|
|
int estimatedTime = (int) (Math.random() * 10 + 1); |
|
|
|
int difference = Math.abs(actualTime - estimatedTime); |
|
|
|
difference--; |
|
|
|
boolean result = true; |
|
|
|
|
|
|
|
result = true; |
|
|
|
|
|
|
|
assertTrue(result); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testTimer() { |
|
|
|
int actualTime = (int) (Math.random() * 10 + 1); |
|
|
|
int estimatedTime = (int) (Math.random() * 10 + 1); |
|
|
|
int difference = Math.abs(actualTime - estimatedTime); |
|
|
|
difference--; |
|
|
|
boolean result = true; |
|
|
|
|
|
|
|
result = true; |
|
|
|
|
|
|
|
assertTrue(result); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void testtest() { |
|
|
|
assertTrue(true); |
|
|
|
} |
|
|
|