-
-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from abeger/67_alphametics_json
Alphametics: Adding test json
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"solve": { | ||
"description": "Solve the alphametics puzzle", | ||
"cases": [ | ||
{ | ||
"description": "solve short puzzle", | ||
"puzzle": "I + BB == ILL", | ||
"expected": { "I": 1, "B": 9, "L": 0 } | ||
}, | ||
{ | ||
"description": "solve long puzzle", | ||
"puzzle": "SEND + MORE == MONEY", | ||
"expected": { "S": 9, "E": 5, "N": 6, "D": 7, "M": 1, "O": 0, "R": 8, "Y": 2 } | ||
}, | ||
{ | ||
"description": "solve puzzle with multiplication", | ||
"puzzle": "IF * DR == DORI", | ||
"expected": { "I": 8, "F": 2, "D": 3, "R": 9, "O": 1 } | ||
}, | ||
{ | ||
"description": "solve puzzle with exponents", | ||
"puzzle": "PI * R ^ 2 == AREA", | ||
"expected": { "P": 9, "I": 6, "R": 7, "A": 4, "E": 0 } | ||
} | ||
] | ||
} | ||
} |