Sha256: b76ab1062ac0bd4b57e1515ec67202ed1e9c3f855013f4ca57acdf0adae7ddda

Contents?: true

Size: 335 Bytes

Versions: 90

Compression:

Stored size: 335 Bytes

Contents

require 'exercise_cases'

class RaindropsCase < OpenStruct
  def name
    'test_%s' % number
  end

  def do
    "Raindrops.convert(#{number})"
  end

  def skipped?
    index > 0
  end
end

RaindropsCases = proc do |data|
  JSON.parse(data)['cases'].map.with_index do |row, i|
    RaindropsCase.new(row.merge('index' => i))
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
trackler-2.0.8.16 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.15 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.14 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.13 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.12 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.11 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.10 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.9 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.8 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.7 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.6 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.5 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.4 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.3 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.2 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.8.1 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.7.0 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.6.44 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.6.43 tracks/ruby/lib/raindrops_cases.rb
trackler-2.0.6.42 tracks/ruby/lib/raindrops_cases.rb