<commit_before>require 'spec_helper'

describe Morpher::Evaluator::Transformer::HashTransform do

  let(:body_a) do
    s(:symbolize_key, 'foo', s(:guard, s(:primitive, String)))
  end

  let(:ast) do
    s(:hash_transform, body_a)
  end

  let(:object) do
    Morpher.evaluator(ast)
  end

  let(:evaluator_a) do
    Morpher.evaluator(body_a)
  end

  let(:input)  { { 'foo' => 'bar' } }
  let(:output) { { foo: 'bar'     } }<commit_msg>Add mutation covering unit spec for Morpher::Evaluator::Transformer::HashTransform<commit_after>require 'spec_helper'

describe Morpher::Evaluator::Transformer::HashTransform do

  let(:body_a) do
    s(:symbolize_key, 'foo', s(:guard, s(:primitive, String)))
  end

  let(:ast) do
    s(:hash_transform, body_a)
  end

  let(:object) do
    Morpher.evaluator(ast)
  end

  let(:evaluator_a) do
    Morpher.evaluator(body_a)
  end

  let(:input)  { { 'foo' => 'bar' } }
  let(:output) { { foo: 'bar'     } }

  describe '#inverse' do
    subject { object.inverse }

    it { should eql(described_class.new([evaluator_a.inverse])) }
  end
{'fraction_non_alphanumeric': 0.15255813953488373, 'fraction_numerical': 0.0, 'mean_word_length': 4.004651162790697, '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': '7390644', 'n_tokens_mistral': 409, 'n_tokens_neox': 396, 'n_words': 79}