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