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