-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbob_test.spec.coffee
54 lines (42 loc) · 1.65 KB
/
bob_test.spec.coffee
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
Bob = require "./bob"
describe "Bob", ->
bob = new Bob()
it "stating something", ->
result = bob.hey "Tom-ay-to, tom-aaaah-to."
expect(result).toEqual "Whatever."
xit "shouting", ->
result = bob.hey "WATCH OUT!"
expect(result).toEqual "Woah, chill out!"
xit "asking a question", ->
result = bob.hey "Does this cryogenic chamber make me look fat?"
expect(result).toEqual "Sure."
xit "talking forcefully", ->
result = bob.hey "Let's go make out behind the gym!"
expect(result).toEqual "Whatever."
xit "using acronyms in regular speech", ->
result = bob.hey "It's OK if you don't want to go to the DMV."
expect(result).toEqual "Whatever."
xit "forceful questions", ->
result = bob.hey "WHAT THE HELL WERE YOU THINKING?"
expect(result).toEqual "Woah, chill out!"
xit "shouting numbers", ->
result = bob.hey "1, 2, 3 GO!"
expect(result).toEqual "Woah, chill out!"
xit "shouting with special characters", ->
result = bob.hey "ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"
expect(result).toEqual "Woah, chill out!"
xit "shouting with no exclamation mark", ->
result = bob.hey "I HATE YOU"
expect(result).toEqual "Woah, chill out!"
xit "statement containing question mark", ->
result = bob.hey "Ending with a ? means a question."
expect(result).toEqual "Whatever."
xit "prattling on", ->
result = bob.hey "Wait! Hang on. Are you going to be OK?"
expect(result).toEqual "Sure."
xit "silence", ->
result = bob.hey ""
expect(result).toEqual "Fine. Be that way!"
xit "prolonged silence", ->
result = bob.hey " "
expect(result).toEqual "Fine. Be that way!"