Skip to content

Commit

Permalink
Fix error expected result in canonical-data.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ramadis committed Oct 10, 2018
1 parent e7ded90 commit 0d5683b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions exercises/darts/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Return the correct amount earned by a dart landing in a given point in the target problem.",
"cases": [
{
"property": "result",
"property": "score",
"description": "A dart lands outside the target",
"input": {
"x": 15.3,
Expand All @@ -15,7 +15,7 @@
"expected": 0
},
{
"property": "result",
"property": "score",
"description": "A dart lands just in the border of the target",
"input": {
"x": 10,
Expand All @@ -24,16 +24,16 @@
"expected": 1
},
{
"property": "result",
"property": "score",
"description": "Input is not a number",
"input": {
"x": "WRONG",
"y": 10
},
"expected": null
"expected": {"error": "Every input should be a number"}
},
{
"property": "result",
"property": "score",
"description": "A dart lands in the middle circle",
"input": {
"x": 3,
Expand All @@ -42,7 +42,7 @@
"expected": 5
},
{
"property": "result",
"property": "score",
"description": "A dart lands right in the border between outside and middle circles",
"input": {
"x": 0,
Expand All @@ -51,7 +51,7 @@
"expected": 5
},
{
"property": "result",
"property": "score",
"description": "A dart arrives in the inner circle",
"input": {
"x": 0,
Expand Down

0 comments on commit 0d5683b

Please sign in to comment.