Sha256: 3ba9c8feeb289d86bcb2ae0df98e4656f59bf5f3a4a410a43e569022d3476f5c

Contents?: true

Size: 559 Bytes

Versions: 90

Compression:

Stored size: 559 Bytes

Contents

#!/usr/bin/env ruby
gem 'minitest', '>= 5.0.0'
require 'minitest/autorun'
require_relative 'sieve'

# Common test data version: <%= abbreviated_commit_hash %>
class SieveTest < Minitest::Test<% test_cases.each do |test_case| %>
  def <%= test_case.name %>
    <%= test_case.skipped %>
    expected = <%= test_case.expected_string %>
    assert_equal expected, Sieve.new(<%= test_case.limit %>).primes
  end
<% end %>
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
  def test_bookkeeping
    skip
    assert_equal <%= version %>, BookKeeping::VERSION
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
trackler-2.0.8.37 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.36 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.35 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.34 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.33 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.32 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.31 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.30 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.29 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.28 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.27 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.26 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.24 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.23 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.22 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.21 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.20 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.19 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.18 tracks/ruby/exercises/sieve/example.tt
trackler-2.0.8.17 tracks/ruby/exercises/sieve/example.tt