<commit_before># encoding: utf-8

require 'spec_helper'
require 'ice_nine/freezer'
require 'ice_nine/freezer/no_freeze'
require 'ice_nine/freezer/numeric'

describe IceNine::Freezer::Numeric, '.deep_freeze' do
  subject { object.deep_freeze(value) }

  let(:object) { described_class }

  [0.0, 0, 0x7fffffffffffffff].each do |value|
    context "with a #{value.class} object" do
      let(:value) { value }

      it_behaves_like 'IceNine::Freezer::Numeric.deep_freeze'
    end
  end
end<commit_msg>Add bigdecimal specs for numeric freezer<commit_after># encoding: utf-8

require 'spec_helper'
require 'ice_nine/freezer'
require 'ice_nine/freezer/no_freeze'
require 'ice_nine/freezer/numeric'
require 'bigdecimal'

describe IceNine::Freezer::Numeric, '.deep_freeze' do
  subject { object.deep_freeze(value) }

  let(:object) { described_class }

  [0.0, 0, 0x7fffffffffffffff, BigDecimal('0')].each do |value|
    context "with a #{value.class} object" do
      let(:value) { value }

      it_behaves_like 'IceNine::Freezer::Numeric.deep_freeze'
    end
  end
end
{'fraction_non_alphanumeric': 0.12488262910798122, 'fraction_numerical': 0.012206572769953052, 'mean_word_length': 4.825136612021858, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '7060217', 'n_tokens_mistral': 408, 'n_tokens_neox': 380, 'n_words': 81}