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

describe "Bignum" do
  it "has positive threshold value 2 ** 29" do
    max = 2 ** 29
    max.class.should == Bignum
    sub = max - 1
    sub.should == 536870911
    sub.class.should == Fixnum
  end
  
  it "has negative threshold value -(2 ** 29)" do
    min = -2 ** 29
    min.class.should == Bignum
    sub = min + 1
    sub.should == -536870911
    sub.class.should == Fixnum
  end
end<commit_msg>Modified Bignum threshold specs to take into account platform wordsize<commit_after>require File.dirname(__FILE__) + '/../../spec_helper'

describe "Bignum" do
  platform_is :wordsize => 32 do
    it "has positive threshold value 2 ** 29" do
      max = 2 ** 29
      max.class.should == Bignum
      sub = max - 1
      sub.should == 536870911
      sub.class.should == Fixnum
    end
  end

  platform_is :wordsize => 64 do
    it "has positive threshold value 2 ** 61" do
      max = 2 ** 61
      max.class.should == Bignum
      sub = max - 1
      sub.should == 2305843009213693951
      sub.class.should == Fixnum
    end
  end
  
  platform_is :wordsize => 32 do
    it "has negative threshold value -(2 ** 29)" do
      min = -2 ** 29
      min.class.should == Bignum
      sub = min + 1
      sub.should == -536870911
      sub.class.should == Fixnum
    end
  end

  platform_is :wordsize => 64 do
    it "has negative threshold value -(2 ** 61)" do
      min = -2 ** 61
      min.class.should == Bignum
      sub = min + 1
      sub.should == -2305843009213693951
      sub.class.should == Fixnum
    end
  end
end
{'fraction_non_alphanumeric': 0.11451814768460576, 'fraction_numerical': 0.07759699624530664, 'mean_word_length': 2.1600790513833994, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6516855', 'n_tokens_mistral': 619, 'n_tokens_neox': 523, 'n_words': 168}