Sha256: 85c1416ed8af2d1e290a7b292d030c046d409ec457a4a74e7f037834189f41ce

Contents?: true

Size: 1006 Bytes

Versions: 89

Compression:

Stored size: 1006 Bytes

Contents

import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.Parameterized
import kotlin.test.assertEquals

@RunWith(Parameterized::class)
class IsogramTest(val input: String, val expectedOutput: Boolean) {

    companion object {
        @JvmStatic
        @Parameterized.Parameters(name = "{index}: isogram({0})={1}")
        fun data() = listOf(
                arrayOf("duplicates", true),
                arrayOf("eleven", false),
                arrayOf("subdermatoglyphic", true),
                arrayOf("Alphabet", false),
                arrayOf("thumbscrew-japingly", true),
                arrayOf("Hjelmqvist-Gryb-Zock-Pfund-Wax", true),
                arrayOf("Heizölrückstoßabdämpfung", true),
                arrayOf("the quick brown fox", false),
                arrayOf("Emily Jung Schwartzkopf", true),
                arrayOf("éléphant", false)
        )
    }

    @Test
    fun test() {
        assertEquals(expectedOutput, Isogram.isIsogram(input))
    }
}

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
trackler-2.0.6.33 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.32 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.31 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.30 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.29 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.28 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.27 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.26 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.25 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.24 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.23 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.22 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.21 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.20 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.19 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.18 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.17 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.16 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.15 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt
trackler-2.0.6.14 tracks/kotlin/exercises/isogram/src/test/kotlin/IsogramTest.kt