Sha256: 8b989d3c9038f22f373ea9c4205776bfad1691ef55d8602e2fc2a17389973f99
Contents?: true
Size: 787 Bytes
Versions: 89
Compression:
Stored size: 787 Bytes
Contents
import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.Parameterized import kotlin.test.assertEquals @RunWith(Parameterized::class) class ScrabbleScoreTest(val input: String, val expectedOutput: Int) { companion object { @JvmStatic @Parameterized.Parameters(name = "{index}: scoreWord({0})={1}") fun data() = listOf( arrayOf("", 0), arrayOf(" \t\n", 0), arrayOf("a", 1), arrayOf("f", 4), arrayOf("street", 6), arrayOf("quirky", 22), arrayOf("OXYPHENBUTAZONE", 41), arrayOf("alacrity", 13) ) } @Test fun test() { assertEquals(expectedOutput, Scrabble.scoreWord(input)) } }
Version data entries
89 entries across 89 versions & 1 rubygems