Skip to content

Commit

Permalink
fix: Added @ignore to the tests (#673)
Browse files Browse the repository at this point in the history
[no important files changed]
  • Loading branch information
DerSimeon authored Oct 20, 2024
1 parent 41324de commit f5eb4bc
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import kotlin.test.Ignore
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith

class CryptoSquareTest {

Expand All @@ -11,41 +11,47 @@ class CryptoSquareTest {
assertEquals(expectedOutput, CryptoSquare.ciphertext(plaintext))
}

@Ignore
@Test
fun `letters are lower cased during encryption`() {
val plaintext = "A"
val expectedOutput = "a"
assertEquals(expectedOutput, CryptoSquare.ciphertext(plaintext))
}

@Ignore
@Test
fun `spaces are removed during encryption`() {
val plaintext = " b "
val expectedOutput = "b"
assertEquals(expectedOutput, CryptoSquare.ciphertext(plaintext))
}

@Ignore
@Test
fun `punctuation is removed during encryption`() {
val plaintext = "@1,%!"
val expectedOutput = "1"
assertEquals(expectedOutput, CryptoSquare.ciphertext(plaintext))
}

@Ignore
@Test
fun `nine character plaintext results in three chunks of three characters`() {
val plaintext = "This is fun!"
val expectedOutput = "tsf hiu isn"
assertEquals(expectedOutput, CryptoSquare.ciphertext(plaintext))
}

@Ignore
@Test
fun `eight character plaintext results in three chunks with a trailing space`() {
val plaintext = "Chill out."
val expectedOutput = "clu hlt io "
assertEquals(expectedOutput, CryptoSquare.ciphertext(plaintext))
}

@Ignore
@Test
fun `fifty four character plaintext results in seven chunks with trailing spaces`() {
val plaintext = "If man was meant to stay on the ground, god would have given us roots."
Expand Down

0 comments on commit f5eb4bc

Please sign in to comment.