Skip to content

Commit

Permalink
alphametics: Update json for new "input" policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Stargator committed Dec 19, 2017
1 parent 74faea8 commit b508b50
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions exercises/alphametics/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
{
"description": "puzzle with three letters",
"property": "solve",
"puzzle": "I + BB == ILL",
"input": {
"puzzle": "I + BB == ILL"
},
"expected": {
"I": 1,
"B": 9,
Expand All @@ -18,19 +20,25 @@
{
"description": "solution must have unique value for each letter",
"property": "solve",
"puzzle": "A == B",
"input": {
"puzzle": "A == B"
},
"expected": null
},
{
"description": "leading zero solution is invalid",
"property": "solve",
"puzzle": "ACA + DD == BD",
"input": {
"puzzle": "ACA + DD == BD"
},
"expected": null
},
{
"description": "puzzle with four letters",
"property": "solve",
"puzzle": "AS + A == MOM",
"input": {
"puzzle": "AS + A == MOM"
},
"expected": {
"A": 9,
"S": 2,
Expand All @@ -41,7 +49,9 @@
{
"description": "puzzle with six letters",
"property": "solve",
"puzzle": "NO + NO + TOO == LATE",
"input": {
"puzzle": "NO + NO + TOO == LATE"
},
"expected": {
"N": 7,
"O": 4,
Expand All @@ -54,7 +64,9 @@
{
"description": "puzzle with seven letters",
"property": "solve",
"puzzle": "HE + SEES + THE == LIGHT",
"input": {
"puzzle": "HE + SEES + THE == LIGHT"
},
"expected": {
"E": 4,
"G": 2,
Expand All @@ -68,7 +80,9 @@
{
"description": "puzzle with eight letters",
"property": "solve",
"puzzle": "SEND + MORE == MONEY",
"input": {
"puzzle": "SEND + MORE == MONEY"
},
"expected": {
"S": 9,
"E": 5,
Expand All @@ -83,7 +97,9 @@
{
"description": "puzzle with ten letters",
"property": "solve",
"puzzle": "AND + A + STRONG + OFFENSE + AS + A + GOOD == DEFENSE",
"input": {
"puzzle": "AND + A + STRONG + OFFENSE + AS + A + GOOD == DEFENSE"
},
"expected": {
"A": 5,
"D": 3,
Expand Down

0 comments on commit b508b50

Please sign in to comment.