This repository was archived by the owner on Mar 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbob.vader
More file actions
131 lines (105 loc) · 3.66 KB
/
Copy pathbob.vader
File metadata and controls
131 lines (105 loc) · 3.66 KB
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
"
" Version: 1.4.0
"
Before:
unlet! heyBob expected
Execute (stating something):
let heyBob = 'Tom-ay-to, tom-aaaah-to.'
let expected = "Whatever."
AssertEqual expected, Response(heyBob)
Execute (shouting):
let heyBob = 'WATCH OUT!'
let expected = "Whoa, chill out!"
AssertEqual expected, Response(heyBob)
Execute (shouting gibberish):
let heyBob = 'FCECDFCAAB'
let expected = "Whoa, chill out!"
AssertEqual expected, Response(heyBob)
Execute (asking a question):
let heyBob = 'Does this cryogenic chamber make me look fat?'
let expected = "Sure."
AssertEqual expected, Response(heyBob)
Execute (asking a numeric question):
let heyBob = 'You are, what, like 15?'
let expected = "Sure."
AssertEqual expected, Response(heyBob)
Execute (asking gibberish):
let heyBob = 'fffbbcbeab?'
let expected = "Sure."
AssertEqual expected, Response(heyBob)
Execute (talking forcefully):
let heyBob = 'Let''s go make out behind the gym!'
let expected = "Whatever."
AssertEqual expected, Response(heyBob)
Execute (using acronyms in regular speech):
let heyBob = 'It''s OK if you don''t want to go to the DMV.'
let expected = "Whatever."
AssertEqual expected, Response(heyBob)
Execute (forceful question):
let heyBob = 'WHAT THE HELL WERE YOU THINKING?'
let expected = "Calm down, I know what I'm doing!"
AssertEqual expected, Response(heyBob)
Execute (shouting numbers):
let heyBob = '1, 2, 3 GO!'
let expected = "Whoa, chill out!"
AssertEqual expected, Response(heyBob)
Execute (no letters):
let heyBob = '1, 2, 3'
let expected = "Whatever."
AssertEqual expected, Response(heyBob)
Execute (question with no letters):
let heyBob = '4?'
let expected = "Sure."
AssertEqual expected, Response(heyBob)
Execute (shouting with special characters):
let heyBob = 'ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!'
let expected = "Whoa, chill out!"
AssertEqual expected, Response(heyBob)
Execute (shouting with no exclamation mark):
let heyBob = 'I HATE THE DMV'
let expected = "Whoa, chill out!"
AssertEqual expected, Response(heyBob)
Execute (statement containing question mark):
let heyBob = 'Ending with ? means a question.'
let expected = "Whatever."
AssertEqual expected, Response(heyBob)
Execute (non-letters with question):
let heyBob = ':) ?'
let expected = "Sure."
AssertEqual expected, Response(heyBob)
Execute (prattling on):
let heyBob = 'Wait! Hang on. Are you going to be OK?'
let expected = "Sure."
AssertEqual expected, Response(heyBob)
Execute (silence):
let heyBob = ''
let expected = "Fine. Be that way!"
AssertEqual expected, Response(heyBob)
Execute (prolonged silence):
let heyBob = ' '
let expected = "Fine. Be that way!"
AssertEqual expected, Response(heyBob)
Execute (alternate silence):
let heyBob = "\t\t\t\t\t\t\t\t\t\t"
let expected = "Fine. Be that way!"
AssertEqual expected, Response(heyBob)
Execute (multiple line question):
let heyBob = "\nDoes this cryogenic chamber make me look fat?\nNo."
let expected = "Whatever."
AssertEqual expected, Response(heyBob)
Execute (starting with whitespace):
let heyBob = ' hmmmmmmm...'
let expected = "Whatever."
AssertEqual expected, Response(heyBob)
Execute (ending with whitespace):
let heyBob = 'Okay if like my spacebar quite a bit? '
let expected = "Sure."
AssertEqual expected, Response(heyBob)
Execute (other whitespace):
let heyBob = "\n\r \t"
let expected = "Fine. Be that way!"
AssertEqual expected, Response(heyBob)
Execute (non-question ending with whitespace):
let heyBob = 'This is a statement ending with whitespace '
let expected = "Whatever."
AssertEqual expected, Response(heyBob)