Skip to content
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

fix: Added @Ignore to the tests #686

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
12 changes: 11 additions & 1 deletion exercises/practice/series/src/test/kotlin/SeriesTest.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.junit.Test
import kotlin.test.Test
import kotlin.test.Ignore
import kotlin.test.assertEquals

class SeriesTest {
Expand All @@ -11,6 +12,7 @@ class SeriesTest {
)
}

@Ignore
@Test
fun slicesOfOneFromTwo() {
assertEquals(
Expand All @@ -19,6 +21,7 @@ class SeriesTest {
)
}

@Ignore
@Test
fun slicesOfTwo() {
assertEquals(
Expand All @@ -27,6 +30,7 @@ class SeriesTest {
)
}

@Ignore
@Test
fun slicesOfTwoOverlap() {
assertEquals(
Expand All @@ -35,6 +39,7 @@ class SeriesTest {
)
}

@Ignore
@Test
fun slicesCanIncludeDuplicates() {
assertEquals(
Expand All @@ -43,6 +48,7 @@ class SeriesTest {
)
}

@Ignore
@Test
fun slicesOfALongSeries() {
assertEquals(
Expand All @@ -58,21 +64,25 @@ class SeriesTest {
)
}

@Ignore
@Test(expected = IllegalArgumentException::class)
fun sliceLengthIsTooLarge() {
Series.slices(4, "123")
}

@Ignore
@Test(expected = IllegalArgumentException::class)
fun sliceLengthCannotBeZero() {
Series.slices(0, "123")
}

@Ignore
@Test(expected = IllegalArgumentException::class)
fun sliceLengthCannotBeNegative() {
Series.slices(-2, "123")
}

@Ignore
@Test(expected = IllegalArgumentException::class)
fun emptySeriesIsInvalid() {
Series.slices(1, "")
Expand Down