Sha256: 3ca6fc5a5a07b1c64d9f420268ad721aca0ea5d7ff5aa2236410f35c5a8c388b

Contents?: true

Size: 567 Bytes

Versions: 61

Compression:

Stored size: 567 Bytes

Contents

require 'minitest/autorun'
require_relative 'gigasecond'

# Test data version: <%= sha1 %>

class GigasecondTest < Minitest::Test<% test_cases.each do |test_case| %>
  def <%= test_case.name %><% if test_case.skipped? %>
    skip<% end %>
    result = Gigasecond.from(<%= test_case.got %>)
    assert_equal <%= test_case.want %>, result
  end
<% end %>
  # Test your 1Gs anniversary
  def test_with_your_birthday
    skip
  end

<%= IO.read(XRUBY_LIB + '/bookkeeping.md') %>
  def test_bookkeeping
    assert_equal <%= version.next %>, BookKeeping::VERSION
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

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