Skip to content

Commit 7dd47bd

Browse files
committed
pascals-triangle: implement error object
per exercism#1311 pascals-triangle: update comment re: errors Per @Insti's suggestion....
1 parent 85da7a5 commit 7dd47bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/pascals-triangle/canonical-data.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"exercise": "pascals-triangle",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"comments": [
55
"Expectations are represented here as an array of arrays.",
66
"How you represent this idiomatically in your language is up to you.",
7-
"An expectation of -1 indicates some sort of failure should occur"
7+
"An expectation of 'error' indicates some sort of failure should occur."
88
],
99
"cases": [
1010
{
@@ -80,7 +80,7 @@
8080
"input": {
8181
"count": -1
8282
},
83-
"expected": -1
83+
"expected": {"error": "count must be positive"}
8484
}
8585
]
8686
}

0 commit comments

Comments
 (0)