<commit_before>require "test_helper"

class MoneyTest < Minitest::Test
  def test_amount
    money = Money.new(50, "EUR")
    assert_equal(50, money.amount)
  end

  def test_currency
    money = Money.new(50, "EUR")
    assert_equal("EUR", money.currency)
  end

  def test_inspect
    money = Money.new(50, "EUR")
    assert_equal("50.00 EUR", money.inspect)
  end

  def test_conversion_rates_setting
    Money.conversion_rates(
      "EUR",
      "USD" => 1.11,
      "Bitcoin" => 0.0047,
    )
  end
end
<commit_msg>(test) Add more amount/currency tests<commit_after>require "test_helper"

class MoneyTest < Minitest::Test
  def test_amount
    money = Money.new(50, "EUR")
    assert_equal(50, money.amount)

    money = Money.new(20, "USD")
    assert_equal(20, money.amount)
  end

  def test_currency
    money = Money.new(50, "EUR")
    assert_equal("EUR", money.currency)

    money = Money.new(20, "USD")
    assert_equal("USD", money.currency)
  end

  def test_inspect
    money = Money.new(50, "EUR")
    assert_equal("50.00 EUR", money.inspect)

    money = Money.new(20.5, "USD")
    assert_equal("20.50 USD", money.inspect)
  end

  def test_conversion_rates_setting
    Money.conversion_rates(
      "EUR",
      "USD" => 1.11,
      "Bitcoin" => 0.0047,
    )
  end
end

{'fraction_non_alphanumeric': 0.13178294573643412, 'fraction_numerical': 0.04108527131782946, 'mean_word_length': 3.111464968152866, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6094346', 'n_tokens_mistral': 524, 'n_tokens_neox': 470, 'n_words': 100}