(ns bob.test (:use clojure.test))
(load-file "bob.clj")

(deftest responds-to-shouts
  (is (= "Woah, chill out!" (bob/response-for "SHOUTING"))))

(deftest responds-to-questions
  (is (= "Sure." (bob/response-for "A question?"))))

(deftest responds-to-statements
  (is (= "Whatever." (bob/response-for "A statement."))))

(deftest responds-to-silence
  (is (= "Fine, be that way." (bob/response-for ""))))

(run-tests)

(ns bob.test (:use clojure.test))
(load-file "bob.clj")

(deftest responds-to-something
  (is (= "Whatever." (bob/response-for "Tom-ay-to, tom-aaaah-to."))))

(deftest responds-to-shouts
  (is (= "Woah, chill out!" (bob/response-for "WATCH OUT!"))))

(deftest responds-to-questions
  (is (= "Sure." (bob/response-for "Does this cryogenic chamber make me look fat?"))))

(deftest responds-to-forceful-talking
  (is (= "Whatever." (bob/response-for "Let's go make out behind the gym!"))))

(deftest responds-to-acronyms
  (is (= "Whatever." (bob/response-for "It's OK if you don't want to go to the DMV."))))

(deftest responds-to-forceful-questions
  (is (= "Woah, chill out!" (bob/response-for "WHAT THE HELL WERE YOU THINKING?"))))

(deftest responds-to-shouting-with-special-characters
  (is (= "Woah, chill out!" (bob/response-for "ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"))))

(deftest responds-to-shouting-numbers
  (is (= "Woah, chill out!" (bob/response-for "1, 2, 3 GO!"))))

(deftest responds-to-shouting-with-no-exclamation-mark
  (is (= "Woah, chill out!" (bob/response-for "I HATE YOU"))))

(deftest responds-to-statement-containing-question-mark
  (is (= "Whatever." (bob/response-for "Ending with ? means a question."))))

(deftest responds-to-silence
  (is (= "Fine, be that way." (bob/response-for ""))))

(run-tests)

Bring tests in line with Ruby tests.
Bring tests in line with Ruby tests.

The Ruby spec for Bob includes a number of tests that clarify certain
points of Bob's behavior.  This commit brings them to the Clojure spec
for Bob.

IanDCarroll/exercism.io,beni55/exercism.io,Tonkpils/exercism.io,MBGeoff/Exercism.io-mbgeoff,treiff/exercism.io,jtigger/exercism.io,chinaowl/exercism.io,colinrubbert/exercism.io,praveenpuglia/exercism.io,sheekap/exercism.io,k4rtik/exercism.io,treiff/exercism.io,copiousfreetime/exercism.io,praveenpuglia/exercism.io,amar47shah/exercism.io,Tonkpils/exercism.io,Tonkpils/exercism.io,alexclarkofficial/exercism.io,mhelmetag/exercism.io,kizerxl/exercism.io,colinrubbert/exercism.io,hanumakanthvvn/exercism.io,jtigger/exercism.io,RaptorRCX/exercism.io,sheekap/exercism.io,exercistas/exercism.io,hanumakanthvvn/exercism.io,mscoutermarsh/exercism_coveralls,RaptorRCX/exercism.io,mscoutermarsh/exercism_coveralls,MBGeoff/Exercism.io-mbgeoff,k4rtik/exercism.io,RaptorRCX/exercism.io,bmulvihill/exercism.io,amar47shah/exercism.io,beni55/exercism.io,kangkyu/exercism.io,mscoutermarsh/exercism_coveralls,kizerxl/exercism.io,RaptorRCX/exercism.io,mscoutermarsh/exercism_coveralls,kangkyu/exercism.io,exercistas/exercism.io,kizerxl/exercism.io,tejasbubane/exercism.io,mhelmetag/exercism.io,bmulvihill/exercism.io,praveenpuglia/exercism.io,mscoutermarsh/exercism_coveralls,nathanbwright/exercism.io,sheekap/exercism.io,chastell/exercism.io,chinaowl/exercism.io,jtigger/exercism.io,tejasbubane/exercism.io,hanumakanthvvn/exercism.io,mscoutermarsh/exercism_coveralls,emilyforst/exercism.io,sheekap/exercism.io,mscoutermarsh/exercism_coveralls,colinrubbert/exercism.io,Tonkpils/exercism.io,mscoutermarsh/exercism_coveralls,tejasbubane/exercism.io,MBGeoff/Exercism.io-mbgeoff,praveenpuglia/exercism.io,nathanbwright/exercism.io,bmulvihill/exercism.io,mscoutermarsh/exercism_coveralls,alexclarkofficial/exercism.io,chinaowl/exercism.io,nathanbwright/exercism.io,mhelmetag/exercism.io,beni55/exercism.io,amar47shah/exercism.io,bmulvihill/exercism.io,treiff/exercism.io,mscoutermarsh/exercism_coveralls,emilyforst/exercism.io,hanumakanthvvn/exercism.io,copiousfreetime/exercism.io,IanDCarroll/exercism.io,chastell/exercism.io,exercistas/exercism.io,IanDCarroll/exercism.io,treiff/exercism.io,chastell/exercism.io,alexclarkofficial/exercism.io,tejasbubane/exercism.io,copiousfreetime/exercism.io,k4rtik/exercism.io,mhelmetag/exercism.io,kangkyu/exercism.io,jtigger/exercism.io,copiousfreetime/exercism.io,IanDCarroll/exercism.io,nathanbwright/exercism.io,emilyforst/exercism.io