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.139 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.138 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.137 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.136 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.135 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.134 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.133 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.132 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.131 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.130 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.129 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.128 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.127 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.126 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.125 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.124 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.123 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.122 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.121 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.120 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader