<commit_before>require 'spec_helper'

describe Namazing do

  describe "#random" do

    subject { Namazing.random }

    it "should provide a string" do
      expect(subject).to be_a_kind_of(String)
    end

    it "should provide a word longer than 3 characters" do
      expect(subject.size).to be > 3
    end

    it "should provide one word when no parameters are provided" do
       expect(subject.downcase).to match(/[a-z]+/)
    end

    it "should provide a random word" do
      srand(10)
      expect(subject).to eq("netminders")
    end

  end

  describe "#convert" do

    subject { Namazing.convert "boring" }

    it "should be a string" do
      expect(subject).to be_a_kind_of(String)
    end

    it "should provide a word longer than 3 characters" do<commit_msg>Spec updated for word list changes in 0.0.3<commit_after>require 'spec_helper'

describe Namazing do

  describe "#random" do

    subject { Namazing.random }

    it "should provide a string" do
      expect(subject).to be_a_kind_of(String)
    end

    it "should provide a word longer than 3 characters" do
      expect(subject.size).to be > 3
    end

    it "should provide one word when no parameters are provided" do
       expect(subject.downcase).to match(/[a-z]+/)
    end

    it "should provide a random word" do
      srand(10)
      expect(subject).to eq("prevocalic")
    end

  end

  describe "#convert" do

    subject { Namazing.convert "boring" }

    it "should be a string" do
      expect(subject).to be_a_kind_of(String)
    end

    it "should provide a word longer than 3 characters" do
{'fraction_non_alphanumeric': 0.08531994981179424, 'fraction_numerical': 0.008155583437892095, 'mean_word_length': 2.7617924528301887, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2995981', 'n_tokens_mistral': 515, 'n_tokens_neox': 475, 'n_words': 174}