<commit_before>require File.dirname(__FILE__) + '/helper'

class TestTags < Test::Unit::TestCase
  context "tagging" do
    setup do
      @content = <<CONTENT
---
layout: post
title: This is a test

---
This document results in a markdown error with maruku
{% highlight ruby %}
puts "hi"

puts "bye"
{% endhighlight %}

CONTENT
    end

    should "render markdown with pygments line handling" do
      # FIXME should test for real
      #Jekyll.pygments = true
      #Jekyll.content_type = :markdown

      #result = Liquid::Template.parse(@content).render({}, [Jekyll::Filters])
      #result = Jekyll.markdown_proc.call(result)
      #assert_no_match(/markdown\-html\-error/,result)
    end
  end
end
<commit_msg>Bringing back the pygments test. All unit tests are back onboard now<commit_after>require File.dirname(__FILE__) + '/helper'

class TestTags < Test::Unit::TestCase
  context "tagging" do
    setup do
      @content = <<CONTENT
---
layout: post
title: This is a test

---
This document results in a markdown error with maruku
{% highlight ruby %}
puts "hi"

puts "bye"
{% endhighlight %}

CONTENT
    end

    should "render markdown with pygments line handling" do
      stub(Jekyll).configuration do
        Jekyll::DEFAULTS.merge({'pygments' => true})
      end
      site = Site.new(Jekyll.configuration)
      info = { :filters => [Jekyll::Filters], :registers => { :site => site } }

      result = Liquid::Template.parse(@content).render({}, info)
      result = site.markdown(result)
      assert_no_match(/markdown\-html\-error/,result)
    end
  end
end

{'fraction_non_alphanumeric': 0.12215189873417721, 'fraction_numerical': 0.0, 'mean_word_length': 3.261455525606469, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '720232', 'n_tokens_mistral': 514, 'n_tokens_neox': 484, 'n_words': 143}