Skip to content

Commit eba72be

Browse files
authored
Merge pull request #639 from rbasso/scrabble-score-schema
scrabble-score: Make exercise schema-compliant
2 parents 6da2b3f + 11ed503 commit eba72be

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

exercises/scrabble-score/canonical-data.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,70 @@
11
{
2+
"exercise": "scrabble-score",
3+
"version": "1.0.0",
24
"cases": [
35
{
46
"description": "lowercase letter",
7+
"property": "score",
58
"input": "a",
69
"expected": 1
710
},
811
{
912
"description": "uppercase letter",
13+
"property": "score",
1014
"input": "A",
1115
"expected": 1
1216
},
1317
{
1418
"description": "valuable letter",
19+
"property": "score",
1520
"input": "f",
1621
"expected": 4
1722
},
1823
{
1924
"description": "short word",
25+
"property": "score",
2026
"input": "at",
2127
"expected": 2
2228
},
2329
{
2430
"description": "short, valuable word",
31+
"property": "score",
2532
"input": "zoo",
2633
"expected": 12
2734
},
2835
{
2936
"description": "medium word",
37+
"property": "score",
3038
"input": "street",
3139
"expected": 6
3240
},
3341
{
3442
"description": "medium, valuable word",
43+
"property": "score",
3544
"input": "quirky",
3645
"expected": 22
3746
},
3847
{
3948
"description": "long, mixed-case word",
49+
"property": "score",
4050
"input": "OxyphenButazone",
4151
"expected": 41
4252
},
4353
{
4454
"description": "english-like word",
55+
"property": "score",
4556
"input": "pinata",
4657
"expected": 8
4758
},
4859
{
4960
"description": "empty input",
61+
"property": "score",
5062
"input": "",
5163
"expected": 0
5264
},
5365
{
5466
"description": "entire alphabet available",
67+
"property": "score",
5568
"input": "abcdefghijklmnopqrstuvwxyz",
5669
"expected": 87
5770
}

0 commit comments

Comments
 (0)