<commit_before>require 'spec_helper'

describe World do
  before(:each) do
    @empty_world = World.empty
  end

  it 'should correct initialize as a World' do
    expect(@empty_world.class).to eq(World)
  end

  it 'should be empty when first initialized' do
    world_is_empty = false
    @empty_world.empty?(-> { world_is_empty = true })
    expect(world_is_empty).to eq(true)
  end

  it 'an empty world should remain empty after one tick' do
    world_is_empty = false
    @empty_world.tick
    @empty_world.empty?(-> { world_is_empty = true })
    expect(world_is_empty).to eq(true)
  end

  it 'an empty world is no longer empty after adding a cell' do
    location_of_cell = double
    world_is_empty = false
    @empty_world.set_living_at(location_of_cell)
    @empty_world.empty?(-> { world_is_empty = true })
    expect(world_is_empty).to eq(false)
  end
end<commit_msg>Switch to 'be true' matcher for specs.<commit_after>require 'spec_helper'

describe World do
  before(:each) do
    @empty_world = World.empty
  end

  it 'should correct initialize as a World' do
    expect(@empty_world.class).to eq(World)
  end

  it 'should be empty when first initialized' do
    world_is_empty = false
    @empty_world.empty?(-> { world_is_empty = true })
    expect(world_is_empty).to be true
  end

  it 'an empty world should remain empty after one tick' do
    world_is_empty = false
    @empty_world.tick
    @empty_world.empty?(-> { world_is_empty = true })
    expect(world_is_empty).to be true
  end

  it 'an empty world is no longer empty after adding a cell' do
    location_of_cell = double
    world_is_empty = false
    @empty_world.set_living_at(location_of_cell)
    @empty_world.empty?(-> { world_is_empty = true })
    expect(world_is_empty).to be false
  end
end
{'fraction_non_alphanumeric': 0.08912556053811659, 'fraction_numerical': 0.0, 'mean_word_length': 3.5652173913043477, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5130322', 'n_tokens_mistral': 595, 'n_tokens_neox': 587, 'n_words': 172}