Sha256: 67bc25211bef1fa7bc4139dce998714a918f2c89af43bf6651986319557b8d31

Contents?: true

Size: 629 Bytes

Versions: 55

Compression:

Stored size: 629 Bytes

Contents

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

# Test data version:
# <%= sha1 %>
#
class NthPrimeTest < Minitest::Test<% test_cases.each do |test_case| %>
  def <%= test_case.name %><% if test_case.skipped? %>
    skip<% end %><% if test_case.raises_error? %>
    assert_raises(ArgumentError) { <%= test_case.actual %> }<% else %>
    assert_equal <%= test_case.expected %>, <%= test_case.actual %><% end %>
  end
<% end %>
<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
  def test_bookkeeping
    skip
    assert_equal <%= version.next %>, BookKeeping::VERSION
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
trackler-2.0.6.11 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.6.10 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.6.9 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.6.8 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.6.7 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.6.6 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.6.5 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.6.4 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.6.3 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.6.2 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.6.1 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.6.0 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.5.18 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.5.17 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.5.16 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.5.15 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.5.14 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.5.13 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.5.12 tracks/ruby/exercises/nth-prime/example.tt
trackler-2.0.5.11 tracks/ruby/exercises/nth-prime/example.tt