<commit_before>require File.dirname(__FILE__) + '/test_helper'

class IsbnTest < Test::Unit::TestCase

  context "given an ISBN 13" do

    setup do
      @isbn = "9780060976255"
    end

    should "handle ISBN 13" do
      assert_equal "9780060976255", ISBN.thirteen(@isbn)
    end

    should "handle ISBN 10" do
      assert_equal "006097625X", ISBN.ten(@isbn)
    end

    should "handle used ISBN" do
      assert_equal "2900060976254", ISBN.between_new_and_used(@isbn)
    end
  end

  context "given an ISBN 10" do

    setup do
      @isbn = "2900060976254"
    end

    should "handle ISBN 13" do
      pend
      assert_equal "9780060976255", ISBN.thirteen(@isbn)
    end

    should "handle ISBN 10" do
      assert_equal "006097625X", ISBN.ten(@isbn)
    end

    should "handle used ISBN" do
      pend
      assert_equal "2900060976254", ISBN.between_new_and_used(@isbn)
    end
  end

  context "given a used ISBN" do

    setup do
      @isbn = "2900060976254"
    end

    should "handle ISBN 13" do
      pend
      assert_equal "9780060976255", ISBN.thirteen(@isbn)
    end

    should "handle ISBN 10" do
      assert_equal "006097625X", ISBN.ten(@isbn)
    end

    should "handle new ISBN" do
      assert_equal "9780060976255", ISBN.between_new_and_used(@isbn)
    end
  end
end<commit_msg>Nevermind the test/unit 2.x feature<commit_after>require File.dirname(__FILE__) + '/test_helper'

class IsbnTest < Test::Unit::TestCase

  context "given an ISBN 13" do

    setup do
      @isbn = "9780060976255"
    end

    should "handle ISBN 13" do
      assert_equal "9780060976255", ISBN.thirteen(@isbn)
    end

    should "handle ISBN 10" do
      assert_equal "006097625X", ISBN.ten(@isbn)
    end

    should "handle used ISBN" do
      assert_equal "2900060976254", ISBN.between_new_and_used(@isbn)
    end
  end

  context "given an ISBN 10" do

    setup do
      @isbn = "2900060976254"
    end

    # should "handle ISBN 13" do
    #   assert_equal "9780060976255", ISBN.thirteen(@isbn)
    # end

    should "handle ISBN 10" do
      assert_equal "006097625X", ISBN.ten(@isbn)
    end

    # should "handle used ISBN" do
    #   assert_equal "2900060976254", ISBN.between_new_and_used(@isbn)
    # end
  end

  context "given a used ISBN" do

    setup do
      @isbn = "2900060976254"
    end

    # should "handle ISBN 13" do
    #   assert_equal "9780060976255", ISBN.thirteen(@isbn)
    # end

    should "handle ISBN 10" do
      assert_equal "006097625X", ISBN.ten(@isbn)
    end

    should "handle new ISBN" do
      assert_equal "9780060976255", ISBN.between_new_and_used(@isbn)
    end
  end
end
{'fraction_non_alphanumeric': 0.09070208728652751, 'fraction_numerical': 0.12182163187855788, 'mean_word_length': 2.7284299858557284, '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': '185922', 'n_tokens_mistral': 1145, 'n_tokens_neox': 946, 'n_words': 254}