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