<commit_before>require 'test_helper'
require 'tilt'

begin
  require 'tilt/pandoc'

  class PandocTemplateTest < Minitest::Test
    test "registered below Kramdown" do
      %w[md mkd markdown].each do |ext|
        lazy = Tilt.lazy_map[ext]
        kram_idx = lazy.index { |klass, file| klass == 'Tilt::KramdownTemplate' }
        pandoc_idx = lazy.index { |klass, file| klass == 'Tilt::PandocTemplate' }
        assert pandoc_idx > kram_idx,
          "#{pandoc_idx} should be higher than #{kram_idx}"
      end
    end

    test "preparing and evaluating templates on #render" do
      template = Tilt::PandocTemplate.new { |t| "# Hello World!" }<commit_msg>Remove unnecessary test<commit_after>require 'test_helper'
require 'tilt'

begin
  require 'tilt/pandoc'

  class PandocTemplateTest < Minitest::Test
    test "preparing and evaluating templates on #render" do
      template = Tilt::PandocTemplate.new { |t| "# Hello World!" }
{'fraction_non_alphanumeric': 0.11099252934898612, 'fraction_numerical': 0.0, 'mean_word_length': 3.575609756097561, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '2625912', 'n_tokens_mistral': 313, 'n_tokens_neox': 311, 'n_words': 83}