|
|
@@ -7,7 +7,7 @@ import org.junit.rules.ExpectedException;
|
|
7
|
7
|
import static org.junit.Assert.assertEquals;
|
|
8
|
8
|
|
|
9
|
9
|
/*
|
|
10
|
|
- * version: 1.0.0
|
|
|
10
|
+ * version: 1.1.0
|
|
11
|
11
|
*/
|
|
12
|
12
|
public class CollatzCalculatorTest {
|
|
13
|
13
|
|
|
|
@@ -40,6 +40,12 @@ public class CollatzCalculatorTest {
|
|
40
|
40
|
|
|
41
|
41
|
@Ignore("Remove to run test")
|
|
42
|
42
|
@Test
|
|
|
43
|
+ public void testAVeryLargeInput() {
|
|
|
44
|
+ assertEquals(152, collatzCalculator.computeStepCount(1000000));
|
|
|
45
|
+ }
|
|
|
46
|
+
|
|
|
47
|
+ @Ignore("Remove to run test")
|
|
|
48
|
+ @Test
|
|
43
|
49
|
public void testZeroIsConsideredInvalidInput() {
|
|
44
|
50
|
expectedException.expect(IllegalArgumentException.class);
|
|
45
|
51
|
expectedException.expectMessage("Only natural numbers are allowed");
|