<commit_before>use "ponytest"

actor Main
  new create(env: Env) =>
    var test = PonyTest(env)

    test(recover _TestBob end)

    test.complete()

// TODO: Separate out into TestShout, TestQuestion, etc. for to make more sense.
class _TestBob iso is UnitTest
  """
  Test Bob package
  """

  fun name(): String => "bob/Bob"

  fun apply(h: TestHelper): TestResult ? =>
    let shout_resp: String = "Whoa, chill out!"
    let ques_resp: String = "Sure."
    let silent_resp: String = "Fine. Be that way!"
    let default_resp: String = "Whatever."

    h.expect_eq[String](default_resp, Bob("Tom-ay-to, tom-aaaah-to."))
    h.expect_eq[String](shout_resp, Bob("WATCH OUT!"))
    h.expect_eq[String](ques_resp, Bob("Does this cryogenic chamber make me look fat?"))
    h.expect_eq[String](ques_resp, Bob("You are, what, like 15?"))
    h.expect_eq[String](default_resp, Bob("Let's go make out behind the gym!"))
    h.expect_eq[String](default_resp, Bob("It's OK if you don't want to go to the DMV."))
    h.expect_eq[String](shout_resp, Bob("WHAT THE HELL WERE YOU THINKING?"))
    h.expect_eq[String](shout_resp, Bob("1, 2, 3 GO!"))
    h.expect_eq[String](default_resp, Bob("1, 2, 3"))
    h.expect_eq[String](ques_resp, Bob("4?"))
    h.expect_eq[String](shout_resp, Bob("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"))<commit_msg>Make Bob compatible with Pony 0.2.1<commit_after>use "ponytest"

actor Main is TestList
  new create(env: Env) =>
    PonyTest(env, this)

  new make() =>
    None

  fun tag tests(test: PonyTest) =>
    test(_TestBob)

// TODO: Separate out into TestShout, TestQuestion, etc. for to make more sense.
class _TestBob iso is UnitTest
  """
  Test Bob package
  """
  fun name(): String => "bob/Bob"

  fun apply(h: TestHelper): TestResult ? =>
    let shout_resp: String = "Whoa, chill out!"
    let ques_resp: String = "Sure."
    let silent_resp: String = "Fine. Be that way!"
    let default_resp: String = "Whatever."

    h.expect_eq[String](default_resp, Bob("Tom-ay-to, tom-aaaah-to."))
    h.expect_eq[String](shout_resp, Bob("WATCH OUT!"))
    h.expect_eq[String](ques_resp, Bob("Does this cryogenic chamber make me look fat?"))
    h.expect_eq[String](ques_resp, Bob("You are, what, like 15?"))
    h.expect_eq[String](default_resp, Bob("Let's go make out behind the gym!"))
    h.expect_eq[String](default_resp, Bob("It's OK if you don't want to go to the DMV."))
    h.expect_eq[String](shout_resp, Bob("WHAT THE HELL WERE YOU THINKING?"))
    h.expect_eq[String](shout_resp, Bob("1, 2, 3 GO!"))
    h.expect_eq[String](default_resp, Bob("1, 2, 3"))
    h.expect_eq[String](ques_resp, Bob("4?"))
    h.expect_eq[String](shout_resp, Bob("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"))
{'fraction_non_alphanumeric': 0.16020482809070957, 'fraction_numerical': 0.009875640087783468, 'mean_word_length': 4.160377358490566, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2168155', 'n_tokens_mistral': 1039, 'n_tokens_neox': 984, 'n_words': 265}