Skip to content

Commit bdea0a8

Browse files
Merge pull request #1106 from ErikSchierboom/secret-handshake-input
secret-handshake: Apply new "input" policy
2 parents 24c287b + a9e4df8 commit bdea0a8

File tree

1 file changed

+34
-12
lines changed

1 file changed

+34
-12
lines changed

exercises/secret-handshake/canonical-data.json

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exercise": "secret-handshake",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"comments": [
55
" In a discussion in https://github.com/exercism/problem-specifications/pull/794 and ",
66
" https://github.com/exercism/problem-specifications/issues/335 it has been decided to ",
@@ -21,67 +21,89 @@
2121
{
2222
"description": "wink for 1",
2323
"property": "commands",
24-
"input": 1,
24+
"input": {
25+
"number": 1
26+
},
2527
"expected": ["wink"]
2628
},
2729
{
2830
"description": "double blink for 10",
2931
"property": "commands",
30-
"input": 2,
32+
"input": {
33+
"number": 2
34+
},
3135
"expected": ["double blink"]
3236
},
3337
{
3438
"description": "close your eyes for 100",
3539
"property": "commands",
36-
"input": 4,
40+
"input": {
41+
"number": 4
42+
},
3743
"expected": ["close your eyes"]
3844
},
3945
{
4046
"description": "jump for 1000",
4147
"property": "commands",
42-
"input": 8,
48+
"input": {
49+
"number": 8
50+
},
4351
"expected": ["jump"]
4452
},
4553
{
4654
"description": "combine two actions",
4755
"property": "commands",
48-
"input": 3,
56+
"input": {
57+
"number": 3
58+
},
4959
"expected": ["wink", "double blink"]
5060
},
5161
{
5262
"description": "reverse two actions",
5363
"property": "commands",
54-
"input": 19,
64+
"input": {
65+
"number": 19
66+
},
5567
"expected": ["double blink", "wink"]
5668
},
5769
{
5870
"description": "reversing one action gives the same action",
5971
"property": "commands",
60-
"input": 24,
72+
"input": {
73+
"number": 24
74+
},
6175
"expected": ["jump"]
6276
},
6377
{
6478
"description": "reversing no actions still gives no actions",
6579
"property": "commands",
66-
"input": 16,
80+
"input": {
81+
"number": 16
82+
},
6783
"expected": []
6884
},
6985
{
7086
"description": "all possible actions",
7187
"property": "commands",
72-
"input": 15,
88+
"input": {
89+
"number": 15
90+
},
7391
"expected": ["wink", "double blink", "close your eyes", "jump"]
7492
},
7593
{
7694
"description": "reverse all possible actions",
7795
"property": "commands",
78-
"input": 31,
96+
"input": {
97+
"number": 31
98+
},
7999
"expected": ["jump", "close your eyes", "double blink", "wink"]
80100
},
81101
{
82102
"description": "do nothing for zero",
83103
"property": "commands",
84-
"input": 0,
104+
"input": {
105+
"number": 0
106+
},
85107
"expected": []
86108
}
87109
]

0 commit comments

Comments
 (0)