<commit_before>require File.expand_path('../../../spec_helper', __FILE__)

ruby_version_is "1.9" do
  describe "BasicObject#!=" do
    it "is a public instance method" do
      BasicObject.should have_public_instance_method(:!=)
    end

    it "returns true if other is not identical to self" do
      a = BasicObject.new
      b = BasicObject.new
      (a != b).should be_true
    end

    it "returns true if other is an Object" do
      a = BasicObject.new
      b = Object.new
      (a != b).should be_true
    end

    it "returns false if other is identical to self" do
      a = BasicObject.new
      (a != a).should be_false
    end

    it "dispatches to #==" do
      a = mock("not_equal")
      b = BasicObject.new
      a.should_receive(:==).and_return(true)

      (a != b).should be_false
    end
  end
end
<commit_msg>Make parseable under 1.8, since it's not in a version subdir.<commit_after>require File.expand_path('../../../spec_helper', __FILE__)

ruby_version_is "1.9" do
  describe "BasicObject#!=" do
    it "is a public instance method" do
      BasicObject.should have_public_instance_method('!='.intern)
    end

    it "returns true if other is not identical to self" do
      a = BasicObject.new
      b = BasicObject.new
      (a != b).should be_true
    end

    it "returns true if other is an Object" do
      a = BasicObject.new
      b = Object.new
      (a != b).should be_true
    end

    it "returns false if other is identical to self" do
      a = BasicObject.new
      (a != a).should be_false
    end

    it "dispatches to #==" do
      a = mock("not_equal")
      b = BasicObject.new
      a.should_receive(:==).and_return(true)

      (a != b).should be_false
    end
  end
end

{'fraction_non_alphanumeric': 0.10904872389791183, 'fraction_numerical': 0.0034802784222737818, 'mean_word_length': 2.3560311284046693, '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': '2212185', 'n_tokens_mistral': 568, 'n_tokens_neox': 551, 'n_words': 182}