<commit_before>require "test/unit"
require "./roman"

class TestRoman < Test::Unit::TestCase
  def test_conversion
   assert_equal('I', Roman.convert(1) )
   assert_equal('Invalid data',Roman.convert('a'))
=begin 
   assert_equal('II',Roman.convert(2))
   assert_equal('III',Roman.convert(3))
   assert_equal("IV",Roman.convert(4))
   assert_equal("V",Roman.convert(5))
   assert_equal("VI",Roman.convert(6))
   assert_equal("VII",Roman.convert(7))
   assert_equal("VIII",Roman.convert(8))
   assert_equal("IX",Roman.convert(9))
   assert_equal("X",Roman.convert(10))
   assert_equal("XI",Roman.convert(11))
   assert_equal("XII",Roman.convert(12))
=end
  end
end


<commit_msg>Code works for 3 digit numbers into roman<commit_after>require "test/unit"
require "./roman"

class TestRoman < Test::Unit::TestCase
  def test_conversion
   assert_equal('I', Roman.convert(1) )
   assert_equal('Invalid data',Roman.convert('a'))
   assert_equal('II',Roman.convert(2))
   assert_equal('III',Roman.convert(3))
   assert_equal("IV",Roman.convert(4))
   assert_equal("V",Roman.convert(5))
   assert_equal("VI",Roman.convert(6))
   assert_equal("VII",Roman.convert(7))
   assert_equal("VIII",Roman.convert(8))
   assert_equal("IX",Roman.convert(9))
   assert_equal("X",Roman.convert(10))
   assert_equal("XI",Roman.convert(11))
   assert_equal("XII",Roman.convert(12))
  end
  def test_conversion1
   assert_equal('CLI', Roman.convert(151) )
   #assert_equal('Invalid data',Roman.convert(xxx))
   #assert_equal('II',Roman.convert(299))
   #assert_equal('III',Roman.convert(3000))
   #assert_equal("IV",Roman.convert(004))
  end
end



{'fraction_non_alphanumeric': 0.17733990147783252, 'fraction_numerical': 0.02770935960591133, 'mean_word_length': 6.1902654867256635, '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': '4989661', 'n_tokens_mistral': 617, 'n_tokens_neox': 560, 'n_words': 71}