Skip to content

Commit

Permalink
fix: Added @ignore to the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DerSimeon committed Oct 14, 2024
1 parent 157270a commit 3f34cec
Showing 1 changed file with 11 additions and 2 deletions.
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

0 comments on commit 3f34cec

Please sign in to comment.