|
1 | 1 | {
|
2 | 2 | "exercise": "secret-handshake",
|
3 |
| - "version": "1.1.0", |
| 3 | + "version": "1.2.0", |
4 | 4 | "comments": [
|
5 | 5 | " In a discussion in https://github.com/exercism/problem-specifications/pull/794 and ",
|
6 | 6 | " https://github.com/exercism/problem-specifications/issues/335 it has been decided to ",
|
|
21 | 21 | {
|
22 | 22 | "description": "wink for 1",
|
23 | 23 | "property": "commands",
|
24 |
| - "input": 1, |
| 24 | + "input": { |
| 25 | + "number": 1 |
| 26 | + }, |
25 | 27 | "expected": ["wink"]
|
26 | 28 | },
|
27 | 29 | {
|
28 | 30 | "description": "double blink for 10",
|
29 | 31 | "property": "commands",
|
30 |
| - "input": 2, |
| 32 | + "input": { |
| 33 | + "number": 2 |
| 34 | + }, |
31 | 35 | "expected": ["double blink"]
|
32 | 36 | },
|
33 | 37 | {
|
34 | 38 | "description": "close your eyes for 100",
|
35 | 39 | "property": "commands",
|
36 |
| - "input": 4, |
| 40 | + "input": { |
| 41 | + "number": 4 |
| 42 | + }, |
37 | 43 | "expected": ["close your eyes"]
|
38 | 44 | },
|
39 | 45 | {
|
40 | 46 | "description": "jump for 1000",
|
41 | 47 | "property": "commands",
|
42 |
| - "input": 8, |
| 48 | + "input": { |
| 49 | + "number": 8 |
| 50 | + }, |
43 | 51 | "expected": ["jump"]
|
44 | 52 | },
|
45 | 53 | {
|
46 | 54 | "description": "combine two actions",
|
47 | 55 | "property": "commands",
|
48 |
| - "input": 3, |
| 56 | + "input": { |
| 57 | + "number": 3 |
| 58 | + }, |
49 | 59 | "expected": ["wink", "double blink"]
|
50 | 60 | },
|
51 | 61 | {
|
52 | 62 | "description": "reverse two actions",
|
53 | 63 | "property": "commands",
|
54 |
| - "input": 19, |
| 64 | + "input": { |
| 65 | + "number": 19 |
| 66 | + }, |
55 | 67 | "expected": ["double blink", "wink"]
|
56 | 68 | },
|
57 | 69 | {
|
58 | 70 | "description": "reversing one action gives the same action",
|
59 | 71 | "property": "commands",
|
60 |
| - "input": 24, |
| 72 | + "input": { |
| 73 | + "number": 24 |
| 74 | + }, |
61 | 75 | "expected": ["jump"]
|
62 | 76 | },
|
63 | 77 | {
|
64 | 78 | "description": "reversing no actions still gives no actions",
|
65 | 79 | "property": "commands",
|
66 |
| - "input": 16, |
| 80 | + "input": { |
| 81 | + "number": 16 |
| 82 | + }, |
67 | 83 | "expected": []
|
68 | 84 | },
|
69 | 85 | {
|
70 | 86 | "description": "all possible actions",
|
71 | 87 | "property": "commands",
|
72 |
| - "input": 15, |
| 88 | + "input": { |
| 89 | + "number": 15 |
| 90 | + }, |
73 | 91 | "expected": ["wink", "double blink", "close your eyes", "jump"]
|
74 | 92 | },
|
75 | 93 | {
|
76 | 94 | "description": "reverse all possible actions",
|
77 | 95 | "property": "commands",
|
78 |
| - "input": 31, |
| 96 | + "input": { |
| 97 | + "number": 31 |
| 98 | + }, |
79 | 99 | "expected": ["jump", "close your eyes", "double blink", "wink"]
|
80 | 100 | },
|
81 | 101 | {
|
82 | 102 | "description": "do nothing for zero",
|
83 | 103 | "property": "commands",
|
84 |
| - "input": 0, |
| 104 | + "input": { |
| 105 | + "number": 0 |
| 106 | + }, |
85 | 107 | "expected": []
|
86 | 108 | }
|
87 | 109 | ]
|
|
0 commit comments