Skip to content

Commit

Permalink
Merge pull request #620 from weapp/patch-1
Browse files Browse the repository at this point in the history
change: Added a positive case without 1 unit coin available
  • Loading branch information
ErikSchierboom authored Mar 3, 2017
2 parents fd73e47 + df9eb7b commit 68152be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises/change/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
"target": 999,
"expected": [2, 2, 5, 20, 20, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100]
},
{
"description": "possible change without unit coins available",
"coins": [2, 5, 10, 20, 50],
"target": 21,
"expected": [2, 2, 2, 5, 10]
},
{
"description": "no coins make 0 change",
"coins": [1, 5, 10, 21, 25],
Expand Down

0 comments on commit 68152be

Please sign in to comment.