Sha256: f1d835352b9caf9205e4203bb00596809a01d9b6b1bbe4dad27453bb6671314d

Contents?: true

Size: 1.75 KB

Versions: 396

Compression:

Stored size: 1.75 KB

Contents

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 "Whoa, 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 "Whoa, chill out!"

  xit "shouting numbers", ->
    result = bob.hey "1, 2, 3 GO!"
    expect(result).toEqual "Whoa, chill out!"

  xit "only number", ->
    result = bob.hey "1, 2, 3"
    expect(result).toEqual "Whatever."

  xit "shouting with special characters", ->
    result = bob.hey "ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"
    expect(result).toEqual "Whoa, chill out!"

  xit "shouting with no exclamation mark", ->
    result = bob.hey "I HATE YOU"
    expect(result).toEqual "Whoa, 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!"

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.179 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.178 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.177 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.176 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.175 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.174 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.173 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.172 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.171 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.170 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.169 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.167 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.166 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.165 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.164 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.163 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.162 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.161 tracks/coffeescript/exercises/bob/bob_test.spec.coffee
trackler-2.2.1.160 tracks/coffeescript/exercises/bob/bob_test.spec.coffee