Sha256: a5eefcb82209ab150ddcd06633d4fed595fb2fb4cae721619ac262da3dcacc1b

Contents?: true

Size: 596 Bytes

Versions: 90

Compression:

Stored size: 596 Bytes

Contents

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

# Common test data version: <%= abbreviated_commit_hash %>
class PhraseTest < Minitest::Test<% test_cases.each do |test_case| %>
  def <%= test_case.name %><% if test_case.skipped? %>
    skip<% end %>
    phrase = <%= test_case.object_under_test %>
    counts = <%= test_case.expected %>
    assert_equal counts, phrase.word_count
  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.21 tracks/ruby/exercises/word-count/example.tt
trackler-2.0.6.20 tracks/ruby/exercises/word-count/example.tt
trackler-2.0.6.19 tracks/ruby/exercises/word-count/example.tt
trackler-2.0.6.18 tracks/ruby/exercises/word-count/example.tt
trackler-2.0.6.17 tracks/ruby/exercises/word-count/example.tt
trackler-2.0.6.16 tracks/ruby/exercises/word-count/example.tt
trackler-2.0.6.15 tracks/ruby/exercises/word-count/example.tt
trackler-2.0.6.14 tracks/ruby/exercises/word-count/example.tt
trackler-2.0.6.13 tracks/ruby/exercises/word-count/example.tt
trackler-2.0.6.12 tracks/ruby/exercises/word-count/example.tt