<commit_before>require File.dirname(__FILE__) + '/test_helper'

class WaveletTest < Test::Unit::TestCase

  context "a wavelet" do
    setup { @wavelet = Wave::Wavelet.new(:wave => new_wave) }
    should "have a wave" do
      assert @wavelet.wave
    end
    should "have a participant list" do
      assert @wavelet.participants
    end
    should "have a collection of blips" do
      assert @wavelet.blips
    end
    should "register itself in it's wave's wavelet collection" do
      assert @wavelet.wave.wavelets.include?(@wavelet)
    end
  end

  protected

    def new_wave
      Wave.new("<EMAIL>")
    end

end<commit_msg>plugging a hole in test coverage<commit_after>require File.dirname(__FILE__) + '/test_helper'

class WaveletTest < Test::Unit::TestCase

  context "a wavelet" do
    setup { @wavelet = Wave::Wavelet.new(:wave => new_wave) }
    should "have a wave" do
      assert @wavelet.wave
    end
    should "require a wave" do
      assert_raises Wave::WaveError do
        Wave::Wavelet.new
      end
    end
    should "have a participant list" do
      assert @wavelet.participants
    end
    should "have a collection of blips" do
      assert @wavelet.blips
    end
    should "register itself in it's wave's wavelet collection" do
      assert @wavelet.wave.wavelets.include?(@wavelet)
    end
  end

  protected

    def new_wave
      Wave.new("<EMAIL>")
    end

end
{'fraction_non_alphanumeric': 0.09064953604568166, 'fraction_numerical': 0.0, 'mean_word_length': 2.830601092896175, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4079827', 'n_tokens_mistral': 453, 'n_tokens_neox': 430, 'n_words': 135}