Sha256: e517db330fd5ce1e39374eb0bc61c75f6e993a0cb3ec209af87551f293822c9f

Contents?: true

Size: 1.42 KB

Versions: 64

Compression:

Stored size: 1.42 KB

Contents

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

/*
 * version: 1.1.0
 */
class PangramTest {

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

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

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

    @Ignore
    @Test
    fun anotherMissingCharacterX() {
        assertFalse(Pangrams.isPangram("the quick brown fish jumps over the lazy dog"))
    }

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

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

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

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

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

}

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
trackler-2.2.1.49 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.48 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.47 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.46 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.45 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.44 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.43 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.42 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.41 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.40 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.39 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.38 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.37 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.36 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.35 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.34 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.33 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.32 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.31 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt
trackler-2.2.1.30 tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt