Sha256: 1e6705cbaf8efe17238800076009dbf1a9ef05bc2cf220f4757d70f11931e5bf

Contents?: true

Size: 752 Bytes

Versions: 307

Compression:

Stored size: 752 Bytes

Contents

import org.junit.Test
import org.junit.Ignore

class IncorrectKeyCipherTest {


    @Test(expected = IllegalArgumentException::class)
    fun cipherThrowsWithAllCapsKey() {
        Cipher("ABCDEF")
    }

    @Ignore
    @Test(expected = IllegalArgumentException::class)
    fun cipherThrowsWithAnyCapsKey() {
        Cipher("abcdEFg")
    }

    @Ignore
    @Test(expected = IllegalArgumentException::class)
    fun cipherThrowsWithNumericKey() {
        Cipher("12345")
    }

    @Ignore
    @Test(expected = IllegalArgumentException::class)
    fun cipherThrowsWithAnyNumericKey() {
        Cipher("abcd345ef")
    }

    @Ignore
    @Test(expected = IllegalArgumentException::class)
    fun cipherThrowsWithEmptyKey() {
        Cipher("")
    }
}

Version data entries

307 entries across 307 versions & 1 rubygems

Version Path
trackler-2.2.1.58 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.57 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.56 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.55 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.54 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.53 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.52 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.51 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.50 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.49 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.48 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.47 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.46 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.45 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.44 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.43 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.42 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.41 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.40 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt
trackler-2.2.1.39 tracks/kotlin/exercises/simple-cipher/src/test/kotlin/IncorrectKeyCipherTest.kt