RSpec.describe 'count test' do

  it 'words with e' do
    words = ["thing", "phone", "bark", "belt", "shoe", "bath"]
    tally = words.count do |word|
      word.include?('e')
    end
    expect(tally).to eq(3)
  end

  xit 'numbers greater than 17' do
    numbers = [9, 18, 12, 17, 1, 3, 99]
    tally = numbers.count do |number|
      # Your code goes here
    end
    expect(tally).to eq(2)
  end

  xit 'words that are uppercase' do
    words = ["trousers", "SOCKS", "sweater", "Cap", "SHOE", "TIE"]
    # Your code goes here
    expect(tally).to eq(3)
  end

  xit 'words ending in ing' do
    words = ["thought", "brake", "shin", "juice", "trash"]
    # Your code goes here
    expect(tally).to eq(0)
  end

  xit 'even numbers' do
    numbers = [9, 2, 1, 3, 18, 39, 71, 4, 6]
    # Your code goes here
    expect(tally).to eq(4)
  end

  xit 'multiples of 5' do
    numbers = [2, 5, 19, 25, 35, 67]
    # Your code goes here
    expect(tally).to eq(3)
  end

  xit 'round prices' do
    prices = [1.0, 3.9, 5.99, 18.5, 20.0]
    # Your code goes here
    expect(tally).to eq(2)
  end

  xit 'four letter words' do
    words = ["bake", "bark", "corn", "apple", "wart", "bird", "umbrella", "fart"]
    # Your code goes here
    expect(tally).to eq(6)
  end
end

