Sha256: 4d72bf5ef1418b6493c758b6b510276fab100dbb0e91721deb4c1cb150a56a2a

Contents?: true

Size: 796 Bytes

Versions: 90

Compression:

Stored size: 796 Bytes

Contents

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

# Common test data version: <%= abbreviated_commit_hash %>
class Date
  def leap?
    raise RuntimeError, "Implement this yourself instead of using Ruby's implementation."
  end

  alias gregorian_leap? leap?
  alias julian_leap? leap?
end

class YearTest < Minitest::Test<% test_cases.each do |test_case| %>
  def <%= test_case.name %>
    <%= test_case.skip %><% if test_case.expected%>
    assert <%= test_case.do %>, "<%= test_case.failure_message%>"<% else %>
    refute <%= test_case.do %>, "<%= test_case.failure_message%>"<% end%>
  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.6.41 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.40 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.39 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.38 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.37 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.36 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.35 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.34 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.33 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.32 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.31 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.30 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.29 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.28 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.27 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.26 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.25 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.24 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.23 tracks/ruby/exercises/leap/example.tt
trackler-2.0.6.22 tracks/ruby/exercises/leap/example.tt