forked from exercism/problem-specifications
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bob.json
148 lines (148 loc) · 4.27 KB
/
bob.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"#": [
"For 'gibberish', some languages generate a random strings.",
"Similarly for 'prolonged silence' and 'alternate silence' some",
"languages generate random length strings of a whitespace character.",
"",
"The \\u escaped 'other' whitespace (in case you don't have all of",
"these codes memorized) are b: vertical tab, a0: non-breaking space,",
"and 2002: en-space."
],
"cases": [
{
"description": "stating something",
"input": "Tom-ay-to, tom-aaaah-to.",
"expected": "Whatever."
},
{
"description": "shouting",
"input": "WATCH OUT!",
"expected": "Whoa, chill out!"
},
{
"description": "shouting gibberish",
"input": "FCECDFCAAB",
"expected": "Whoa, chill out!"
},
{
"description": "asking a question",
"input": "Does this cryogenic chamber make me look fat?",
"expected": "Sure."
},
{
"description": "asking a numeric question",
"input": "You are, what, like 15?",
"expected": "Sure."
},
{
"description": "asking gibberish",
"input": "fffbbcbeab?",
"expected": "Sure."
},
{
"description": "talking forcefully",
"input": "Let's go make out behind the gym!",
"expected": "Whatever."
},
{
"description": "using acronyms in regular speech",
"input": "It's OK if you don't want to go to the DMV.",
"expected": "Whatever."
},
{
"description": "forceful question",
"input": "WHAT THE HELL WERE YOU THINKING?",
"expected": "Whoa, chill out!"
},
{
"description": "shouting numbers",
"input": "1, 2, 3 GO!",
"expected": "Whoa, chill out!"
},
{
"description": "only numbers",
"input": "1, 2, 3",
"expected": "Whatever."
},
{
"description": "question with only numbers",
"input": "4?",
"expected": "Sure."
},
{
"description": "shouting with special characters",
"input": "ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!",
"expected": "Whoa, chill out!"
},
{
"description": "shouting with umlauts",
"input": "ÜMLÄÜTS!",
"expected": "Whoa, chill out!"
},
{
"description": "calmly speaking with umlauts",
"input": "ÜMLäÜTS!",
"expected": "Whatever."
},
{
"description": "shouting with no exclamation mark",
"input": "I HATE YOU",
"expected": "Whoa, chill out!"
},
{
"description": "statement containing question mark",
"input": "Ending with ? means a question.",
"expected": "Whatever."
},
{
"description": "non-letters with question",
"input": ":) ?",
"expected": "Sure."
},
{
"description": "prattling on",
"input": "Wait! Hang on. Are you going to be OK?",
"expected": "Sure."
},
{
"description": "silence",
"input": "",
"expected": "Fine. Be that way!"
},
{
"description": "prolonged silence",
"input": " ",
"expected": "Fine. Be that way!"
},
{
"description": "alternate silence",
"input": "\t\t\t\t\t\t\t\t\t\t",
"expected": "Fine. Be that way!"
},
{
"description": "multiple line question",
"input": "\nDoes this cryogenic chamber make me look fat?\nno",
"expected": "Whatever."
},
{
"description": "starting with whitespace",
"input": " hmmmmmmm...",
"expected": "Whatever."
},
{
"description": "ending with whitespace",
"input": "Okay if like my spacebar quite a bit? ",
"expected": "Sure."
},
{
"description": "other whitespace",
"input": "\n\r \t\u000b\u00a0\u2002",
"expected": "Fine. Be that way!"
},
{
"description": "non-question ending with whitespace",
"input": "This is a statement ending with whitespace ",
"expected": "Whatever."
}
]
}