File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 6
6
"description" : " Return the correct amount earned by a dart landing in a given point in the target problem." ,
7
7
"cases" : [
8
8
{
9
- "property" : " result " ,
9
+ "property" : " score " ,
10
10
"description" : " A dart lands outside the target" ,
11
11
"input" : {
12
12
"x" : 15.3 ,
15
15
"expected" : 0
16
16
},
17
17
{
18
- "property" : " result " ,
18
+ "property" : " score " ,
19
19
"description" : " A dart lands just in the border of the target" ,
20
20
"input" : {
21
21
"x" : 10 ,
24
24
"expected" : 1
25
25
},
26
26
{
27
- "property" : " result " ,
27
+ "property" : " score " ,
28
28
"description" : " Input is not a number" ,
29
29
"input" : {
30
30
"x" : " WRONG" ,
31
31
"y" : 10
32
32
},
33
- "expected" : null
33
+ "expected" : { "error" : " Every input should be a number " }
34
34
},
35
35
{
36
- "property" : " result " ,
36
+ "property" : " score " ,
37
37
"description" : " A dart lands in the middle circle" ,
38
38
"input" : {
39
39
"x" : 3 ,
42
42
"expected" : 5
43
43
},
44
44
{
45
- "property" : " result " ,
45
+ "property" : " score " ,
46
46
"description" : " A dart lands right in the border between outside and middle circles" ,
47
47
"input" : {
48
48
"x" : 0 ,
51
51
"expected" : 5
52
52
},
53
53
{
54
- "property" : " result " ,
54
+ "property" : " score " ,
55
55
"description" : " A dart arrives in the inner circle" ,
56
56
"input" : {
57
57
"x" : 0 ,
You can’t perform that action at this time.
0 commit comments