<commit_before>require 'spec_helper'

describe AQL::Node::Literal::Composed::Document, '#aql' do
  let(:object) { AQL::Node::Literal.build(input) }

  if RUBY_VERSION < '1.9'
    pending 'Test for ordered hashes, ruby 1.8 has unordered ones'
  end

  examples = {
    {}                    => '{}',
    { 'name' => 'Peter' } => '{"name": "Peter"}',
    { 
      'name'    => 'John', <commit_msg>Correctly exclude specs for 1.8<commit_after>require 'spec_helper'

describe AQL::Node::Literal::Composed::Document, '#aql' do
  let(:object) { AQL::Node::Literal.build(input) }

  if RUBY_VERSION < '1.9'
    before do
      pending 'Test for ordered hashes, ruby 1.8 has unordered ones'
    end
  end

  examples = {
    {}                    => '{}',
    { 'name' => 'Peter' } => '{"name": "Peter"}',
    { 
      'name'    => 'John', 
{'fraction_non_alphanumeric': 0.18389423076923078, 'fraction_numerical': 0.01201923076923077, 'mean_word_length': 2.7354260089686098, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 11, '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': '5008870', 'n_tokens_mistral': 307, 'n_tokens_neox': 283, 'n_words': 65}