Skip to content

largest-series-product: add hint to @Ignore annotations #481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersInOrder()
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersNotInOrder() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("576802143");
Expand All @@ -35,7 +35,7 @@ public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersNotInOrde
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductWhenSeriesLengthEqualsStringToSearchLength() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("29");
Expand All @@ -46,7 +46,7 @@ public void testCorrectlyCalculatesLargestProductWhenSeriesLengthEqualsStringToS
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersInOrder() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
Expand All @@ -57,7 +57,7 @@ public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersInOrder
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersNotInOrder() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("1027839564");
Expand All @@ -68,7 +68,7 @@ public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersNotInOr
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductOfLengthFiveWithNumbersInOrder() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
Expand All @@ -79,7 +79,7 @@ public void testCorrectlyCalculatesLargestProductOfLengthFiveWithNumbersInOrder(
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductInLongStringToSearchV1() {
final LargestSeriesProductCalculator calculator
Expand All @@ -92,7 +92,7 @@ public void testCorrectlyCalculatesLargestProductInLongStringToSearchV1() {
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductInLongStringToSearchV2() {
final LargestSeriesProductCalculator calculator
Expand All @@ -105,7 +105,7 @@ public void testCorrectlyCalculatesLargestProductInLongStringToSearchV2() {
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductInLongStringToSearchFromProjectEuler() {
final LargestSeriesProductCalculator calculator
Expand All @@ -118,7 +118,7 @@ public void testCorrectlyCalculatesLargestProductInLongStringToSearchFromProject
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductOfZeroIfAllDigitsAreZeroes() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0000");
Expand All @@ -129,7 +129,7 @@ public void testCorrectlyCalculatesLargestProductOfZeroIfAllDigitsAreZeroes() {
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductOfZeroIfAllSeriesOfGivenLengthContainZero() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("99099");
Expand All @@ -140,7 +140,7 @@ public void testCorrectlyCalculatesLargestProductOfZeroIfAllSeriesOfGivenLengthC
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testSeriesLengthLongerThanLengthOfStringToTestIsRejected() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
Expand All @@ -152,7 +152,7 @@ public void testSeriesLengthLongerThanLengthOfStringToTestIsRejected() {
calculator.calculateLargestProductForSeriesLength(4);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductOfLength0ForEmptyStringToSearch() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
Expand All @@ -163,7 +163,7 @@ public void testCorrectlyCalculatesLargestProductOfLength0ForEmptyStringToSearch
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCorrectlyCalculatesLargestProductOfLength0ForNonEmptyStringToSearch() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
Expand All @@ -174,7 +174,7 @@ public void testCorrectlyCalculatesLargestProductOfLength0ForNonEmptyStringToSea
assertEquals(expectedProduct, actualProduct);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testEmptyStringToSearchAndSeriesOfNonZeroLengthIsRejected() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
Expand All @@ -186,7 +186,7 @@ public void testEmptyStringToSearchAndSeriesOfNonZeroLengthIsRejected() {
calculator.calculateLargestProductForSeriesLength(1);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testStringToSearchContainingNonDigitCharacterIsRejected() {
expectedException.expect(IllegalArgumentException.class);
Expand All @@ -195,7 +195,7 @@ public void testStringToSearchContainingNonDigitCharacterIsRejected() {
new LargestSeriesProductCalculator("1234a5");
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testNegativeSeriesLengthIsRejected() {
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("12345");
Expand All @@ -206,7 +206,7 @@ public void testNegativeSeriesLengthIsRejected() {
calculator.calculateLargestProductForSeriesLength(-1);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testNullStringToSearchIsRejected() {
expectedException.expect(IllegalArgumentException.class);
Expand Down