Skip to content

Commit

Permalink
pascals-triangle: implement error object
Browse files Browse the repository at this point in the history
per exercism#1311
pascals-triangle: update comment re: errors

Per @Insti's suggestion....
  • Loading branch information
rpottsoh committed Sep 24, 2018
1 parent 85da7a5 commit 7dd47bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/pascals-triangle/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"exercise": "pascals-triangle",
"version": "1.3.0",
"version": "1.4.0",
"comments": [
"Expectations are represented here as an array of arrays.",
"How you represent this idiomatically in your language is up to you.",
"An expectation of -1 indicates some sort of failure should occur"
"An expectation of 'error' indicates some sort of failure should occur."
],
"cases": [
{
Expand Down Expand Up @@ -80,7 +80,7 @@
"input": {
"count": -1
},
"expected": -1
"expected": {"error": "count must be positive"}
}
]
}
Expand Down

0 comments on commit 7dd47bd

Please sign in to comment.