<commit_before>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
<commit_msg>Handle test cases with to_s evaluating to nil<commit_after>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

{'fraction_non_alphanumeric': 0.14850136239782016, 'fraction_numerical': 0.0, 'mean_word_length': 6.135922330097087, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5876786', 'n_tokens_mistral': 272, 'n_tokens_neox': 243, 'n_words': 47}