Sha256: ba11368b60208bea1490fc6a79b40c10dddb5373afec484aa5431b61d1a69f9c

Contents?: true

Size: 1.51 KB

Versions: 126

Compression:

Stored size: 1.51 KB

Contents

import org.junit.Test
import org.junit.Ignore
import kotlin.test.assertFalse
import kotlin.test.assertTrue

class PangramTest {

    @Test
    fun emptySentence() {
        assertFalse(Pangram.isPangram(""))
    }

    @Ignore
    @Test
    fun perfectLowercasePangram() {
        assertTrue(Pangram.isPangram("abcdefghijklmnopqrstuvwxyz"))
    }

    @Ignore
    @Test
    fun lowercasePangram() {
        assertTrue(Pangram.isPangram("the quick brown fox jumps over the lazy dog"))
    }

    @Ignore
    @Test
    fun missingCharacterX() {
        assertFalse(Pangram.isPangram("a quick movement of the enemy will jeopardize five gunboats"))
    }

    @Ignore
    @Test
    fun anotherMissingCharacterX() {
        assertFalse(Pangram.isPangram("five boxing wizards jump quickly at it"))
    }

    @Ignore
    @Test
    fun withUnderscores() {
        assertTrue(Pangram.isPangram("the_quick_brown_fox_jumps_over_the_lazy_dog"))
    }

    @Ignore
    @Test
    fun withNumbers() {
        assertTrue(Pangram.isPangram("the 1 quick brown fox jumps over the 2 lazy dogs"))
    }

    @Ignore
    @Test
    fun missingLettersReplacedByNumbers() {
        assertFalse(Pangram.isPangram("7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog"))
    }

    @Ignore
    @Test
    fun mixedCaseAndPunctuation() {
        assertTrue(Pangram.isPangram("\"Five quacking Zephyrs jolt my wax bed.\""))
    }

    @Ignore
    @Test
    fun mixedCaseDuplicatedCharacters() {
        assertFalse(Pangram.isPangram("the quick brown fox jumps over with lazy FX"))
    }

}

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.179 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.178 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.177 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.176 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.175 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.174 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.173 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.172 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.171 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.170 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.169 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.167 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.166 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.165 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.164 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.163 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.162 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.161 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.160 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt