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 #687

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
13 changes: 11 additions & 2 deletions exercises/practice/transpose/src/test/kotlin/TransposeTest.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import org.junit.Rule
import org.junit.rules.ExpectedException
import kotlin.test.Ignore
import kotlin.test.Test
import kotlin.test.assertEquals

Expand All @@ -12,69 +11,79 @@ class TransposeTest {
assertEquals(expected, Transpose.transpose(lines))
}

@Ignore
@Test
fun `two characters in a row`() {
val lines = listOf("A1")
val expected = listOf("A", "1")
assertEquals(expected, Transpose.transpose(lines))
}

@Ignore
@Test
fun `two characters in a column`() {
val lines = listOf("A", "1")
val expected = listOf("A1")
assertEquals(expected, Transpose.transpose(lines))
}

@Ignore
@Test
fun simple() {
val lines = listOf("ABC", "123")
val expected = listOf("A1", "B2", "C3")
assertEquals(expected, Transpose.transpose(lines))
}

@Ignore
@Test
fun `single line`() {
val lines = listOf("Single line.")
val expected = listOf("S", "i", "n", "g", "l", "e", " ", "l", "i", "n", "e", ".")
assertEquals(expected, Transpose.transpose(lines))
}

@Ignore
@Test
fun `first line longer than second line`() {
val lines = listOf("The fourth line.", "The fifth line.")
val expected = listOf("TT", "hh", "ee", " ", "ff", "oi", "uf", "rt", "th", "h ", " l", "li", "in", "ne", "e.", ".")
assertEquals(expected, Transpose.transpose(lines))
}

@Ignore
@Test
fun `second line longer than first line`() {
val lines = listOf("The first line.", "The second line.")
val expected = listOf("TT", "hh", "ee", " ", "fs", "ie", "rc", "so", "tn", " d", "l ", "il", "ni", "en", ".e", " .")
assertEquals(expected, Transpose.transpose(lines))
}

@Ignore
@Test
fun `mixed line length`() {
val lines = listOf("The longest line.", "A long line.", "A longer line.", "A line.")
val expected = listOf("TAAA", "h ", "elll", " ooi", "lnnn", "ogge", "n e.", "glr", "ei ", "snl", "tei", " .n", "l e", "i .", "n", "e", ".")
assertEquals(expected, Transpose.transpose(lines))
}

@Ignore
@Test
fun square() {
val lines = listOf("HEART", "EMBER", "ABUSE", "RESIN", "TREND")
val expected = listOf("HEART", "EMBER", "ABUSE", "RESIN", "TREND")
assertEquals(expected, Transpose.transpose(lines))
}

@Ignore
@Test
fun rectangle() {
val lines = listOf("FRACTURE", "OUTLINED", "BLOOMING", "SEPTETTE")
val expected = listOf("FOBS", "RULE", "ATOP", "CLOT", "TIME", "UNIT", "RENT", "EDGE")
assertEquals(expected, Transpose.transpose(lines))
}

@Ignore
@Test
fun triangle() {
val lines = listOf("T", "EE", "AAA", "SSSS", "EEEEE", "RRRRRR")
Expand Down