<commit_before>require "spec_helper"

describe Pin do

  before :each do
    @pin = Pin.new 1
  end

  describe "#new" do

    it "should return a pin object" do
      @pin.should be_an_instance_of Pin
    end
    
    it "should raise an error for an incorrect pin number" do
      lambda { Pin.new(99) }.should raise_error(RuntimeError)
    end

    it "should not raise an error for an incorrect pin" do
	lambda { Pin.new(9) }.should_not raise_error(RuntimeError)
    end
 
  end<commit_msg>Removed depreciated function from test<commit_after>require "spec_helper"

describe Pin do

  before :each do
    @pin = Pin.new 1
  end

  describe "#new" do

    it "should return a pin object" do
      @pin.should be_an_instance_of Pin
    end
    
    it "should raise an error for an incorrect pin number" do
      lambda { Pin.new(99) }.should raise_error
    end

    it "should not raise an error for an incorrect pin" do
	lambda { Pin.new(9) }.should_not raise_error
    end
 
  end
{'fraction_non_alphanumeric': 0.06903553299492386, 'fraction_numerical': 0.008121827411167513, 'mean_word_length': 2.7777777777777777, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1407864', 'n_tokens_mistral': 329, 'n_tokens_neox': 308, 'n_words': 121}