Sha256: 13b597d4030c994f0eb24987c8c2dc1d45c86dae10ff5c6e56a169fbed0bf6e6

Contents?: true

Size: 633 Bytes

Versions: 87

Compression:

Stored size: 633 Bytes

Contents

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

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

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
trackler-2.0.8.13 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.12 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.11 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.10 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.9 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.8 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.7 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.6 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.5 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.4 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.3 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.2 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.8.1 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.7.0 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.6.44 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.6.43 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.6.42 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.6.41 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.6.40 tracks/ruby/exercises/hamming/example.tt
trackler-2.0.6.39 tracks/ruby/exercises/hamming/example.tt