Sha256: 68095d83d94ca39c4348da5f765b7cb2b96e172ae961444ec2aae7fdb0e0c850

Contents?: true

Size: 264 Bytes

Versions: 233

Compression:

Stored size: 264 Bytes

Contents

require 'generator/exercise_case'

class RomanNumeralsCase < Generator::ExerciseCase
  def name
    'test_%s' % number.to_s
  end

  def workload
    "assert_equal '#{expected}', #{actual}"
  end

  private

  def actual
    '%s.to_roman' % number.to_s
  end

end

Version data entries

233 entries across 233 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.118 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.117 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.116 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.115 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.114 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.113 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.111 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.110 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.109 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.108 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.107 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.106 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.105 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.104 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.103 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.102 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.101 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.100 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.99 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb