<commit_before>require 'test_helper'

describe Strus::Smoosh do
  before do
    @test_string = " I <3 ruby\n\nyes I do    "
  end

  it 'has a version number' do
    ::Strus::Smoosh::VERSION.wont_be_nil
  end

  it 'removes whitespace from strings' do
    @test_string.smoosh.wont_match ' '
  end

  it 'smooshes the content of a string' do
    @test_string.smoosh.must_equal 'I<3rubyyesIdo'
  end
end
<commit_msg>Add failing test for Array#smoosh.<commit_after>require 'test_helper'

describe Strus::Smoosh do
  before do
    @test_string = " I <3 ruby\n\nyes I do    "
    @test_array = [@test_string, " w00t\n w00t ", "\t\they he\ny"]
  end

  it 'has a version number' do
    ::Strus::Smoosh::VERSION.wont_be_nil
  end

  it 'removes whitespace from strings' do
    @test_string.smoosh.wont_match ' '
  end

  it 'smooshes the content of a string' do
    @test_string.smoosh.must_equal 'I<3rubyyesIdo'
  end

  it 'smooshes each string in an array and joins them' do
    @test_array.smoosh.must_equal 'I<3rubyyesIdow00tw00theyhey'
  end
end

{'fraction_non_alphanumeric': 0.09665071770334928, 'fraction_numerical': 0.012440191387559809, 'mean_word_length': 3.47008547008547, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 3, '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': '5254890', 'n_tokens_mistral': 427, 'n_tokens_neox': 405, 'n_words': 108}