Sha256: 5db73ef6cd239f18814a7b25a7f1519a13cf5f21e7b2867383eb9f1d94a66b15

Contents?: true

Size: 147 Bytes

Versions: 233

Compression:

Stored size: 147 Bytes

Contents

require 'generator/exercise_case'

class LuhnCase < Generator::ExerciseCase
  def workload
    "#{assert} Luhn.valid?(#{input.inspect})"
  end
end

Version data entries

233 entries across 233 versions & 1 rubygems

Version Path
trackler-2.2.1.58 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.57 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.56 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.55 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.54 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.53 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.52 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.51 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.50 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.49 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.48 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.47 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.46 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.45 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.44 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.43 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.42 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.41 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.40 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.39 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb