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

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
@@ -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