require 'minitest/autorun'
require_relative '<%= exercise_name %>'

# Common test data version: <%= canonical_data_version %> <%= abbreviated_commit_hash %>
class <%= exercise_test_classname %> < Minitest::Test
<%=
  test_cases.map.with_index do |test_case, index|
    test_case.to_s(index.zero?)
  end.join("\n")
%>end

require 'minitest/autorun'
require_relative '<%= exercise_name %>'

# Common test data version: <%= canonical_data_version %> <%= abbreviated_commit_hash %>
class <%= exercise_test_classname %> < Minitest::Test
<%=
  test_cases.map.with_index do |test_case, index|
    test_case.to_s(index.zero?)
  end.compact.join("\n")
%>end

Handle test cases with to_s evaluating to nil
Handle test cases with to_s evaluating to nil

This change makes it possible for ExerciseCases to override the to_s
method, returning nil for tests we don't want for the Ruby track.

Without this change these excluded tests would still not appear on the
generated test file, but an extra new-line would be present where they
would be, given how:

	[1, 2, nil, 4].join("\n")
	# => "1\n2\n\n4"
