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.38 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.37 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.36 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.35 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.34 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.33 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.32 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.31 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.30 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.29 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.28 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.27 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.26 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.25 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.24 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.23 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.22 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.21 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.20 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb
trackler-2.2.1.19 tracks/ruby/exercises/luhn/.meta/generator/luhn_case.rb