File tree Expand file tree Collapse file tree 1 file changed +30
-12
lines changed Expand file tree Collapse file tree 1 file changed +30
-12
lines changed Original file line number Diff line number Diff line change 11{
22 "exercise" : " darts" ,
3- "version" : " 1.0 .0" ,
3+ "version" : " 1.1 .0" ,
44 "cases" : [
55 {
66 "description" : " Return the correct amount earned by a dart landing in a given point in the target problem." ,
99 "property" : " score" ,
1010 "description" : " A dart lands outside the target" ,
1111 "input" : {
12- "x" : 15.3 ,
13- "y" : 13.2
12+ "x" : -9 ,
13+ "y" : 9
1414 },
1515 "expected" : 0
1616 },
1717 {
1818 "property" : " score" ,
1919 "description" : " A dart lands just in the border of the target" ,
2020 "input" : {
21- "x" : 10 ,
22- "y" : 0
21+ "x" : 0 ,
22+ "y" : 10
23+ },
24+ "expected" : 1
25+ },
26+ {
27+ "property" : " score" ,
28+ "description" : " A dart lands in the outer circle" ,
29+ "input" : {
30+ "x" : 4 ,
31+ "y" : 4
2332 },
2433 "expected" : 1
2534 },
35+ {
36+ "property" : " score" ,
37+ "description" : " A dart lands right in the border between outer and middle circles" ,
38+ "input" : {
39+ "x" : 5 ,
40+ "y" : 0
41+ },
42+ "expected" : 5
43+ },
2644 {
2745 "property" : " score" ,
2846 "description" : " A dart lands in the middle circle" ,
2947 "input" : {
30- "x" : 3 ,
31- "y" : 3.7
48+ "x" : 0.8 ,
49+ "y" : -0.8
3250 },
3351 "expected" : 5
3452 },
3553 {
3654 "property" : " score" ,
37- "description" : " A dart lands right in the border between outside and middle circles" ,
55+ "description" : " A dart lands right in the border between middle and inner circles" ,
3856 "input" : {
3957 "x" : 0 ,
40- "y" : 5
58+ "y" : -1
4159 },
42- "expected" : 5
60+ "expected" : 10
4361 },
4462 {
4563 "property" : " score" ,
4664 "description" : " A dart lands in the inner circle" ,
4765 "input" : {
48- "x" : 0 ,
49- "y" : 0
66+ "x" : -0.1 ,
67+ "y" : -0.1
5068 },
5169 "expected" : 10
5270 }
You can’t perform that action at this time.
0 commit comments