Skip to content

Commit 0d5683b

Browse files
committed
Fix error expected result in canonical-data.json
1 parent e7ded90 commit 0d5683b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

exercises/darts/canonical-data.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"description": "Return the correct amount earned by a dart landing in a given point in the target problem.",
77
"cases": [
88
{
9-
"property": "result",
9+
"property": "score",
1010
"description": "A dart lands outside the target",
1111
"input": {
1212
"x": 15.3,
@@ -15,7 +15,7 @@
1515
"expected": 0
1616
},
1717
{
18-
"property": "result",
18+
"property": "score",
1919
"description": "A dart lands just in the border of the target",
2020
"input": {
2121
"x": 10,
@@ -24,16 +24,16 @@
2424
"expected": 1
2525
},
2626
{
27-
"property": "result",
27+
"property": "score",
2828
"description": "Input is not a number",
2929
"input": {
3030
"x": "WRONG",
3131
"y": 10
3232
},
33-
"expected": null
33+
"expected": {"error": "Every input should be a number"}
3434
},
3535
{
36-
"property": "result",
36+
"property": "score",
3737
"description": "A dart lands in the middle circle",
3838
"input": {
3939
"x": 3,
@@ -42,7 +42,7 @@
4242
"expected": 5
4343
},
4444
{
45-
"property": "result",
45+
"property": "score",
4646
"description": "A dart lands right in the border between outside and middle circles",
4747
"input": {
4848
"x": 0,
@@ -51,7 +51,7 @@
5151
"expected": 5
5252
},
5353
{
54-
"property": "result",
54+
"property": "score",
5555
"description": "A dart arrives in the inner circle",
5656
"input": {
5757
"x": 0,

0 commit comments

Comments
 (0)