Sha256: 29c3bc9f878ad0165aeb472e7573ebec268dd1d6539ccb59c7bcf2b35cf72241

Contents?: true

Size: 415 Bytes

Versions: 6

Compression:

Stored size: 415 Bytes

Contents

require 'test_helper'

class SmartPunctTest < Minitest::Test
  smart_punct = open_spec_file('smart_punct.txt', normalize: true)

  smart_punct.each do |testcase|
    doc = CommonMarker.render_doc(testcase[:markdown], [:smart])

    define_method("test_smart_punct_example_#{testcase[:example]}") do
      actual = doc.to_html.strip

      assert_equal testcase[:html], actual, testcase[:markdown]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commonmarker-0.5.0 test/test_smartpunct.rb
commonmarker-0.4.1 test/test_smartpunct.rb
commonmarker-0.4.0 test/test_smartpunct.rb
commonmarker-0.3.0 test/test_smartpunct.rb
commonmarker-0.2.1 test/test_smartpunct.rb
commonmarker-0.2.0 test/test_smartpunct.rb