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.139 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.138 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.137 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.136 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.135 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.134 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.133 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.132 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.131 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.130 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.129 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.128 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.127 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.126 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.125 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.124 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.123 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.122 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.121 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb
trackler-2.2.1.120 tracks/ruby/exercises/roman-numerals/.meta/generator/roman_numerals_case.rb