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.159 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.158 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.157 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.156 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.155 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.154 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.153 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.152 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.151 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.150 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.149 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.148 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.147 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.146 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.145 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.144 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.143 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.142 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.141 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.140 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader