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.2.1.10 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.1.9 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.1.8 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.1.7 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.1.6 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.1.5 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.1.4 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.1.3 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.1.2 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.1.1 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.1.0 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.0.6 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.0.5 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.0.4 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.0.3 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.0.2 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.0.1 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.2.0.0 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.1.0.55 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb
trackler-2.1.0.54 tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb