<commit_before>require "minitest/autorun"
require "number_letter_counts"

class NumberLetterCountsTest < Minitest::Test
  def test_to_one
    nlc_to 1
    assert_count 3
  end

  def test_to_two
    nlc_to 2
    assert_count 6
  end

  def test_to_three
    nlc_to 3
    assert_count 11
  end

  def test_to_ten
    nlc_to 10
    assert_count 39
  end

  def test_1_is_one
    nlc_to 1
    assert_equal "one", @nlc.send(:number_to_word, 1)
  end<commit_msg>add bound checking tests to return to later.<commit_after>require "minitest/autorun"
require "number_letter_counts"

class NumberLetterCountsTest < Minitest::Test
  def test_error_when_negative
    skip "nlc should throw an error when instaniated with less than 1"
  end

  def test_error_when_beyond_limit
    skip "nlc should throw an error when instantiated with more than 1000"
  end

  def test_to_one
    nlc_to 1
    assert_count 3
  end

  def test_to_two
    nlc_to 2
    assert_count 6
  end

  def test_to_three
    nlc_to 3
    assert_count 11
  end

  def test_to_ten
    nlc_to 10
    assert_count 39
  end

  def test_1_is_one
    nlc_to 1
    assert_equal "one", @nlc.send(:number_to_word, 1)
  end
{'fraction_non_alphanumeric': 0.03842869342442357, 'fraction_numerical': 0.028181041844577284, 'mean_word_length': 3.2007168458781363, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5530748', 'n_tokens_mistral': 476, 'n_tokens_neox': 432, 'n_words': 124}