<commit_before>require 'minitest/autorun'

begin
  require_relative 'bob'

  class TeenagerTest < MiniTest::Unit::TestCase
    attr_reader :teenager

    def setup
      @teenager = Bob.new
    end

    def test_stating_something
      assert_equal 'Whatever.', teenager.hey('Tom-ay-to, tom-aaaah-to.')
    end

    def test_shouting
      skip
      assert_equal 'Woah, chill out!', teenager.hey('WATCH OUT!')
    end

    def test_asking_a_question
      skip
      assert_equal 'Sure.', teenager.hey('Does this cryogenic chamber make me look fat?')
    end

    def test_talking_forcefully
      skip
      assert_equal 'Whatever.', teenager.hey("Let's go make out behind the gym!")
    end

    def test_using_acronyms_in_regular_speech
      skip
      assert_equal 'Whatever.', teenager.hey("It's OK if you don't want to go to the DMV.")
    end

    def test_forceful_questions
      skip
      assert_equal 'Woah, chill out!', teenager.hey('WHAT THE HELL WERE YOU THINKING?')
    end

    def test_shouting_numbers
      skip
      assert_equal 'Woah, chill out!', teenager.hey('1, 2, 3 GO!')
    end

    def test_shouting_with_special_characters
      skip
      assert_equal 'Woah, chill out!', teenager.hey('ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!')
    end

    def test_shouting_with_no_exclamation_mark
      skip
      assert_equal 'Woah, chill out!', teenager.hey('I HATE YOU')
    end

    def test_statement_containing_question_mark
      skip
      assert_equal 'Whatever.', teenager.hey('Ending with ? means a question.')
    end

    def test_prattling_on
      skip
      assert_equal 'Sure.', teenager.hey("Wait! Hang on. Are you going to be OK?")
    end

    def test_silence
      skip
      assert_equal 'Fine. Be that way!', teenager.hey('')
    end

    def test_more_silence
      skip
      assert_equal 'Fine. Be that way!', teenager.hey(nil)
    end
  end

rescue LoadError => e

  def explain(something)
    7.times { puts }
    puts "Hit enter to continue..."
    gets
    7.times { puts }
    puts something
    puts
  end

  zomg = <<-ERROR
######## ########  ########   #######  ########  
##       ##     ## ##     ## ##     ## ##     ## 
##       ##     ## ##     ## ##     ## ##     ## 
######   ########  ########  ##     ## ########  
##       ##   ##   ##   ##   ##     ## ##   ##   
##       ##    ##  ##    ##  ##     ## ##    ##  
######## ##     ## ##     ##  #######  ##     ## <commit_msg>Adding more tests for silence to Bob<commit_after>require 'minitest/autorun'

begin
  require_relative 'bob'

  class TeenagerTest < MiniTest::Unit::TestCase
    attr_reader :teenager

    def setup
      @teenager = Bob.new
    end

    def test_stating_something
      assert_equal 'Whatever.', teenager.hey('Tom-ay-to, tom-aaaah-to.')
    end

    def test_shouting
      skip
      assert_equal 'Woah, chill out!', teenager.hey('WATCH OUT!')
    end

    def test_asking_a_question
      skip
      assert_equal 'Sure.', teenager.hey('Does this cryogenic chamber make me look fat?')
    end

    def test_talking_forcefully
      skip
      assert_equal 'Whatever.', teenager.hey("Let's go make out behind the gym!")
    end

    def test_using_acronyms_in_regular_speech
      skip
      assert_equal 'Whatever.', teenager.hey("It's OK if you don't want to go to the DMV.")
    end

    def test_forceful_questions
      skip
      assert_equal 'Woah, chill out!', teenager.hey('WHAT THE HELL WERE YOU THINKING?')
    end

    def test_shouting_numbers
      skip
      assert_equal 'Woah, chill out!', teenager.hey('1, 2, 3 GO!')
    end

    def test_shouting_with_special_characters
      skip
      assert_equal 'Woah, chill out!', teenager.hey('ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!')
    end

    def test_shouting_with_no_exclamation_mark
      skip
      assert_equal 'Woah, chill out!', teenager.hey('I HATE YOU')
    end

    def test_statement_containing_question_mark
      skip
      assert_equal 'Whatever.', teenager.hey('Ending with ? means a question.')
    end

    def test_prattling_on
      skip
      assert_equal 'Sure.', teenager.hey("Wait! Hang on. Are you going to be OK?")
    end

    def test_silence
      skip
      assert_equal 'Fine. Be that way!', teenager.hey('')
    end

    def test_more_silence
      skip
      assert_equal 'Fine. Be that way!', teenager.hey(nil)
    end

    def test_prolonged_silence
      skip
      assert_equal 'Fine. Be that way!', teenager.hey('    ')
    end
  end

rescue LoadError => e

  def explain(something)
    7.times { puts }
    puts "Hit enter to continue..."
    gets
    7.times { puts }
    puts something
    puts
  end

  zomg = <<-ERROR
######## ########  ########   #######  ########  
##       ##     ## ##     ## ##     ## ##     ## 
##       ##     ## ##     ## ##     ## ##     ## 
######   ########  ########  ##     ## ########  
##       ##   ##   ##   ##   ##     ## ##   ##   
##       ##    ##  ##    ##  ##     ## ##    ##  
######## ##     ## ##     ##  #######  ##     ## 
{'fraction_non_alphanumeric': 0.1475735879077168, 'fraction_numerical': 0.0031821797931583136, 'mean_word_length': 2.2783572359843545, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5809160', 'n_tokens_mistral': 1732, 'n_tokens_neox': 1603, 'n_words': 404}