<commit_before>#
# Copyright (c) 2013 by Lifted Studios.  All Rights Reserved.
#

describe Font do
  let(:font) { Font.new './fonts/Abscissa.ttf' }
  let(:points) { 18 }
  let(:text) { 'The quick brown fox jumped over the lazy dog' }

  it 'will have a name' do
    expect(font.name).to eq('Abscissa')
  end

  it 'can calculate the width and height of a given string of text in pixels' do
    expect(font.text_width(text, points)).to eq(336)
    expect(font.text_height(points)).to eq(24)
  end
end<commit_msg>Split the height and width tests<commit_after>#
# Copyright (c) 2013 by Lifted Studios.  All Rights Reserved.
#

describe Font do
  let(:font) { Font.new './fonts/Abscissa.ttf' }
  let(:points) { 18 }
  let(:text) { 'The quick brown fox jumped over the lazy dog' }

  it 'will have a name' do
    expect(font.name).to eq('Abscissa')
  end

  it 'can calculate the width of a given string of text in pixels' do
    expect(font.text_width(text, points)).to eq(336)
  end

  it 'can calculate the height of a line of text in pixels' do
    expect(font.text_height(points)).to eq(24)
  end
end
{'fraction_non_alphanumeric': 0.11636363636363636, 'fraction_numerical': 0.02, 'mean_word_length': 3.5308641975308643, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '761122', 'n_tokens_mistral': 397, 'n_tokens_neox': 367, 'n_words': 136}