import org.scalatest.{Matchers, FunSuite} /** @version 1.0.0 */ class BobTest extends FunSuite with Matchers { test("stating something") { Bob.response("Tom-ay-to, tom-aaaah-to.") should be ("Whatever.") } test("shouting") { pending Bob.response("WATCH OUT!") should be ("Whoa, chill out!") } test("shouting gibberish") { pending Bob.response("FCECDFCAAB") should be ("Whoa, chill out!") } test("asking a question") { pending Bob.response("Does this cryogenic chamber make me look fat?") should be ("Sure.") } test("asking a numeric question") { pending Bob.response("You are, what, like 15?") should be ("Sure.") } test("asking gibberish") { pending Bob.response("fffbbcbeab?") should be ("Sure.") } test("talking forcefully") { pending Bob.response("Let's go make out behind the gym!") should be ("Whatever.") } test("using acronyms in regular speech") { pending Bob.response("It's OK if you don't want to go to the DMV.") should be ("Whatever.") } test("forceful question") { pending Bob.response("WHAT THE HELL WERE YOU THINKING?") should be ("Whoa, chill out!") } test("shouting numbers") { pending Bob.response("1, 2, 3 GO!") should be ("Whoa, chill out!") } test("only numbers") { pending Bob.response("1, 2, 3") should be ("Whatever.") } test("question with only numbers") { pending Bob.response("4?") should be ("Sure.") } test("shouting with special characters") { pending Bob.response("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!") should be ("Whoa, chill out!") } test("shouting with no exclamation mark") { pending Bob.response("I HATE YOU") should be ("Whoa, chill out!") } test("statement containing question mark") { pending Bob.response("Ending with ? means a question.") should be ("Whatever.") } test("non-letters with question") { pending Bob.response(":) ?") should be ("Sure.") } test("prattling on") { pending Bob.response("Wait! Hang on. Are you going to be OK?") should be ("Sure.") } test("silence") { pending Bob.response("") should be ("Fine. Be that way!") } test("prolonged silence") { pending Bob.response(" ") should be ("Fine. Be that way!") } test("alternate silence") { pending Bob.response(" ") should be ("Fine. Be that way!") } test("multiple line question") { pending Bob.response(""" Does this cryogenic chamber make me look fat? no""") should be ("Whatever.") } test("starting with whitespace") { pending Bob.response(" hmmmmmmm...") should be ("Whatever.") } test("ending with whitespace") { pending Bob.response("Okay if like my spacebar quite a bit? ") should be ("Sure.") } test("other whitespace") { pending Bob.response(""" """) should be ("Fine. Be that way!") } test("non-question ending with whitespace") { pending Bob.response("This is a statement ending with whitespace ") should be ("Whatever.") } }