Sha256: 2d3e9241e982d39b3e2ae645bce8ab5847555ea3e11d9d7b0341eff380a3db01

Contents?: true

Size: 325 Bytes

Versions: 43

Compression:

Stored size: 325 Bytes

Contents

require 'generator/exercise_case'

class SumOfMultiplesCase < Generator::ExerciseCase
  using Generator::Underscore

  def workload
    assert_expected = "assert_equal #{expected.underscore}"
    value = "SumOfMultiples.new(#{factors.join(', ')}).to(#{limit})"
    indent_lines(["#{assert_expected}, #{value}"], 4)
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
trackler-2.1.0.32 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.1.0.31 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.1.0.30 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb