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.119 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.118 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.117 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.116 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.115 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.114 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.113 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.111 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.110 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.109 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.108 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.107 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.106 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.105 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.104 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.103 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.102 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.101 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.100 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader
trackler-2.2.1.99 tracks/vimscript/exercises/scrabble-score/scrabble_score.vader