|
1 | 1 | {
|
2 | 2 | "exercise": "bob",
|
3 |
| - "version": "1.1.0", |
| 3 | + "version": "1.2.0", |
4 | 4 | "cases": [
|
5 | 5 | {
|
6 | 6 | "description": "stating something",
|
7 | 7 | "property": "response",
|
8 |
| - "input": "Tom-ay-to, tom-aaaah-to.", |
| 8 | + "input": { |
| 9 | + "heyBob": "Tom-ay-to, tom-aaaah-to." |
| 10 | + }, |
9 | 11 | "expected": "Whatever."
|
10 | 12 | },
|
11 | 13 | {
|
12 | 14 | "description": "shouting",
|
13 | 15 | "property": "response",
|
14 |
| - "input": "WATCH OUT!", |
| 16 | + "input": { |
| 17 | + "heyBob": "WATCH OUT!" |
| 18 | + }, |
15 | 19 | "expected": "Whoa, chill out!"
|
16 | 20 | },
|
17 | 21 | {
|
18 | 22 | "description": "shouting gibberish",
|
19 | 23 | "property": "response",
|
20 |
| - "input": "FCECDFCAAB", |
| 24 | + "input": { |
| 25 | + "heyBob": "FCECDFCAAB" |
| 26 | + }, |
21 | 27 | "expected": "Whoa, chill out!"
|
22 | 28 | },
|
23 | 29 | {
|
24 | 30 | "description": "asking a question",
|
25 | 31 | "property": "response",
|
26 |
| - "input": "Does this cryogenic chamber make me look fat?", |
| 32 | + "input": { |
| 33 | + "heyBob": "Does this cryogenic chamber make me look fat?" |
| 34 | + }, |
27 | 35 | "expected": "Sure."
|
28 | 36 | },
|
29 | 37 | {
|
30 | 38 | "description": "asking a numeric question",
|
31 | 39 | "property": "response",
|
32 |
| - "input": "You are, what, like 15?", |
| 40 | + "input": { |
| 41 | + "heyBob": "You are, what, like 15?" |
| 42 | + }, |
33 | 43 | "expected": "Sure."
|
34 | 44 | },
|
35 | 45 | {
|
36 | 46 | "description": "asking gibberish",
|
37 | 47 | "property": "response",
|
38 |
| - "input": "fffbbcbeab?", |
| 48 | + "input": { |
| 49 | + "heyBob": "fffbbcbeab?" |
| 50 | + }, |
39 | 51 | "expected": "Sure."
|
40 | 52 | },
|
41 | 53 | {
|
42 | 54 | "description": "talking forcefully",
|
43 | 55 | "property": "response",
|
44 |
| - "input": "Let's go make out behind the gym!", |
| 56 | + "input": { |
| 57 | + "heyBob": "Let's go make out behind the gym!" |
| 58 | + }, |
45 | 59 | "expected": "Whatever."
|
46 | 60 | },
|
47 | 61 | {
|
48 | 62 | "description": "using acronyms in regular speech",
|
49 | 63 | "property": "response",
|
50 |
| - "input": "It's OK if you don't want to go to the DMV.", |
| 64 | + "input": { |
| 65 | + "heyBob": "It's OK if you don't want to go to the DMV." |
| 66 | + }, |
51 | 67 | "expected": "Whatever."
|
52 | 68 | },
|
53 | 69 | {
|
54 | 70 | "description": "forceful question",
|
55 | 71 | "property": "response",
|
56 |
| - "input": "WHAT THE HELL WERE YOU THINKING?", |
| 72 | + "input": { |
| 73 | + "heyBob": "WHAT THE HELL WERE YOU THINKING?" |
| 74 | + }, |
57 | 75 | "expected": "Calm down, I know what I'm doing!"
|
58 | 76 | },
|
59 | 77 | {
|
60 | 78 | "description": "shouting numbers",
|
61 | 79 | "property": "response",
|
62 |
| - "input": "1, 2, 3 GO!", |
| 80 | + "input": { |
| 81 | + "heyBob": "1, 2, 3 GO!" |
| 82 | + }, |
63 | 83 | "expected": "Whoa, chill out!"
|
64 | 84 | },
|
65 | 85 | {
|
66 | 86 | "description": "only numbers",
|
67 | 87 | "property": "response",
|
68 |
| - "input": "1, 2, 3", |
| 88 | + "input": { |
| 89 | + "heyBob": "1, 2, 3" |
| 90 | + }, |
69 | 91 | "expected": "Whatever."
|
70 | 92 | },
|
71 | 93 | {
|
72 | 94 | "description": "question with only numbers",
|
73 | 95 | "property": "response",
|
74 |
| - "input": "4?", |
| 96 | + "input": { |
| 97 | + "heyBob": "4?" |
| 98 | + }, |
75 | 99 | "expected": "Sure."
|
76 | 100 | },
|
77 | 101 | {
|
78 | 102 | "description": "shouting with special characters",
|
79 | 103 | "property": "response",
|
80 |
| - "input": "ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!", |
| 104 | + "input": { |
| 105 | + "heyBob": "ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!" |
| 106 | + }, |
81 | 107 | "expected": "Whoa, chill out!"
|
82 | 108 | },
|
83 | 109 | {
|
84 | 110 | "description": "shouting with no exclamation mark",
|
85 | 111 | "property": "response",
|
86 |
| - "input": "I HATE YOU", |
| 112 | + "input": { |
| 113 | + "heyBob": "I HATE YOU" |
| 114 | + }, |
87 | 115 | "expected": "Whoa, chill out!"
|
88 | 116 | },
|
89 | 117 | {
|
90 | 118 | "description": "statement containing question mark",
|
91 | 119 | "property": "response",
|
92 |
| - "input": "Ending with ? means a question.", |
| 120 | + "input": { |
| 121 | + "heyBob": "Ending with ? means a question." |
| 122 | + }, |
93 | 123 | "expected": "Whatever."
|
94 | 124 | },
|
95 | 125 | {
|
96 | 126 | "description": "non-letters with question",
|
97 | 127 | "property": "response",
|
98 |
| - "input": ":) ?", |
| 128 | + "input": { |
| 129 | + "heyBob": ":) ?" |
| 130 | + }, |
99 | 131 | "expected": "Sure."
|
100 | 132 | },
|
101 | 133 | {
|
102 | 134 | "description": "prattling on",
|
103 | 135 | "property": "response",
|
104 |
| - "input": "Wait! Hang on. Are you going to be OK?", |
| 136 | + "input": { |
| 137 | + "heyBob": "Wait! Hang on. Are you going to be OK?" |
| 138 | + }, |
105 | 139 | "expected": "Sure."
|
106 | 140 | },
|
107 | 141 | {
|
108 | 142 | "description": "silence",
|
109 | 143 | "property": "response",
|
110 |
| - "input": "", |
| 144 | + "input": { |
| 145 | + "heyBob": "" |
| 146 | + }, |
111 | 147 | "expected": "Fine. Be that way!"
|
112 | 148 | },
|
113 | 149 | {
|
114 | 150 | "description": "prolonged silence",
|
115 | 151 | "property": "response",
|
116 |
| - "input": " ", |
| 152 | + "input": { |
| 153 | + "heyBob": " " |
| 154 | + }, |
117 | 155 | "expected": "Fine. Be that way!"
|
118 | 156 | },
|
119 | 157 | {
|
120 | 158 | "description": "alternate silence",
|
121 | 159 | "property": "response",
|
122 |
| - "input": "\t\t\t\t\t\t\t\t\t\t", |
| 160 | + "input": { |
| 161 | + "heyBob": "\t\t\t\t\t\t\t\t\t\t" |
| 162 | + }, |
123 | 163 | "expected": "Fine. Be that way!"
|
124 | 164 | },
|
125 | 165 | {
|
126 | 166 | "description": "multiple line question",
|
127 | 167 | "property": "response",
|
128 |
| - "input": "\nDoes this cryogenic chamber make me look fat?\nno", |
| 168 | + "input": { |
| 169 | + "heyBob": "\nDoes this cryogenic chamber make me look fat?\nno" |
| 170 | + }, |
129 | 171 | "expected": "Whatever."
|
130 | 172 | },
|
131 | 173 | {
|
132 | 174 | "description": "starting with whitespace",
|
133 | 175 | "property": "response",
|
134 |
| - "input": " hmmmmmmm...", |
| 176 | + "input": { |
| 177 | + "heyBob": " hmmmmmmm..." |
| 178 | + }, |
135 | 179 | "expected": "Whatever."
|
136 | 180 | },
|
137 | 181 | {
|
138 | 182 | "description": "ending with whitespace",
|
139 | 183 | "property": "response",
|
140 |
| - "input": "Okay if like my spacebar quite a bit? ", |
| 184 | + "input": { |
| 185 | + "heyBob": "Okay if like my spacebar quite a bit? " |
| 186 | + }, |
141 | 187 | "expected": "Sure."
|
142 | 188 | },
|
143 | 189 | {
|
144 | 190 | "description": "other whitespace",
|
145 | 191 | "property": "response",
|
146 |
| - "input": "\n\r \t", |
| 192 | + "input": { |
| 193 | + "heyBob": "\n\r \t" |
| 194 | + }, |
147 | 195 | "expected": "Fine. Be that way!"
|
148 | 196 | },
|
149 | 197 | {
|
150 | 198 | "description": "non-question ending with whitespace",
|
151 | 199 | "property": "response",
|
152 |
| - "input": "This is a statement ending with whitespace ", |
| 200 | + "input": { |
| 201 | + "heyBob": "This is a statement ending with whitespace " |
| 202 | + }, |
153 | 203 | "expected": "Whatever."
|
154 | 204 | }
|
155 | 205 | ]
|
|
0 commit comments