Sha256: e2b9fd0d4a8caffb310abab9bbcee73f8cef1a14adf3e07f8e1dafee245350b6

Contents?: true

Size: 1.23 KB

Versions: 215

Compression:

Stored size: 1.23 KB

Contents

"
" Version: 1.0.0
"

Before:
  unlet! input expected

Execute (lowercase letter):
  let input = "a"
  let expected = 1
  AssertEqual expected, Score(input)

Execute (uppercase letter):
  let input = "A"
  let expected = 1
  AssertEqual expected, Score(input)

Execute (valuable letter):
  let input = "f"
  let expected = 4
  AssertEqual expected, Score(input)

Execute (short word):
  let input = "at"
  let expected = 2
  AssertEqual expected, Score(input)

Execute (short, valuable word):
  let input = "zoo"
  let expected = 12
  AssertEqual expected, Score(input)

Execute (medium word):
  let input = "street"
  let expected = 6
  AssertEqual expected, Score(input)

Execute (medium, valuable word):
  let input = "quirky"
  let expected = 22
  AssertEqual expected, Score(input)

Execute (long, mixed-case word):
  let input = "OxyphenButazone"
  let expected = 41
  AssertEqual expected, Score(input)

Execute (english-like word):
  let input = "pinata"
  let expected = 8
  AssertEqual expected, Score(input)

Execute (empty input):
  let input = ""
  let expected = 0
  AssertEqual expected, Score(input)

Execute (entire alphabet available):
  let input = "abcdefghijklmnopqrstuvwxyz"
  let expected = 87
  AssertEqual expected, Score(input)

Version data entries

215 entries across 215 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.179 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.178 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.177 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.176 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.175 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.174 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.173 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.172 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.171 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.170 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.169 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.167 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.166 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.165 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.164 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.163 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.162 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.161 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.160 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader